8#ifndef MFRAME_5A999F7A_3DE3_494B_940A_A5BA5360324F
9#define MFRAME_5A999F7A_3DE3_494B_940A_A5BA5360324F
18#include "./../io/ByteBuffer.h"
24 class ByteBufferInvert;
109 return this->
pollShortMsb(
reinterpret_cast<short&
>(result));
120 return this->
pollIntMsb(
reinterpret_cast<int&
>(result));
靈活高效的位元組緩衝區實現
Definition ByteBuffer.h:45
ByteBuffer(ufm::lang::Memory memory) noexcept
使用現有記憶體建立位元組緩衝區
ufm::lang::Memory & memory(void)
獲取 ByteBuffer 的記憶體。
Definition ByteBuffer.h:472
提供大端序(MSB)操作的位元組緩衝區
Definition ByteBufferInvert.h:40
ByteBufferInvert(ufm::lang::Memory memory) noexcept
使用指定記憶體建立大端序位元組緩衝區
Definition ByteBufferInvert.h:58
ByteBufferInvert(int length)
建立指定大小的大端序位元組緩衝區
Definition ByteBufferInvert.h:68
bool putFloatMsb(const float value)
以大端序方式寫入浮點數
bool pollIntMsb(int &result)
以大端序方式讀取整數
bool pollIntMsb(uint32 &result)
以大端序方式讀取無符號整數
Definition ByteBufferInvert.h:119
bool pollFloatMsb(float &result)
以大端序方式讀取浮點數
bool putIntMsb(const int value)
以大端序方式寫入整數
ByteBufferInvert(void *pointer, int length)
使用指定指標和長度建立大端序位元組緩衝區
Definition ByteBufferInvert.h:78
virtual ~ByteBufferInvert(void) override
建立大端序位元組緩衝區,使用現有的記憶體物件
bool pollShortMsb(uint16 &result)
以大端序方式讀取無符號短整數
Definition ByteBufferInvert.h:108
bool pollShortMsb(short &result)
以大端序方式讀取短整數
bool putShortMsb(const short value)
以大端序方式寫入短整數
存儲資料的類別,提供動態記憶體管理功能。
Definition Memory.h:44