mFrame
載入中...
搜尋中...
無符合項目
mframe::io::ByteBufferInvert 類別 參考文件
類別mframe::io::ByteBufferInvert的繼承圖:
mframe::io::ByteBuffer mframe::lang::Object mframe::lang::Appendable mframe::lang::Readable mframe::io::Buffer mframe::lang::Interface mframe::lang::Interface mframe::lang::Interface mframe::lang::Flushable mframe::lang::Interface

公開方法(Public Methods)

 ByteBufferInvert (const mframe::lang::Memory &memory)
 Construct a new Byte Buffer Invert object.
 
 ByteBufferInvert (int length)
 Construct a new Byte Buffer Invert object.
 
virtual ~ByteBufferInvert (void) override
 Destroy the object.
 
bool pollShortMsb (uint16 &result)
 Get the Short Msb object.
 
bool pollIntMsb (uint32 &result)
 Get the Int Msb object.
 
bool putShortMsb (const short value)
 
bool putFloatMsb (const float value)
 
bool putIntMsb (const int value)
 
bool pollShortMsb (short &result)
 Get the Short Msb object.
 
bool pollIntMsb (int &result)
 Get the Int Msb object.
 
bool pollFloatMsb (float &result)
 
- 公開方法(Public Methods) 繼承自 mframe::io::ByteBuffer
 ByteBuffer (const mframe::lang::Memory &memory)
 Construct a new Byte Buffer object.
 
 ByteBuffer (int length)
 Construct a new Byte Buffer object.
 
virtual ~ByteBuffer (void) override
 Destroy the Byte Buffer object.
 
ByteBufferoperator<< (char c)
 
ByteBufferoperator<< (short s)
 
ByteBufferoperator<< (int v)
 
ByteBufferoperator<< (const char *string)
 
ByteBufferoperator<< (mframe::lang::Strings &string)
 
int operator= (int v)
 
void operator+= (int shift)
 
void operator-= (int shift)
 
uint32 operator++ (void)
 
uint32 operator-- (void)
 
uint32 operator++ (int)
 
uint32 operator-- (int)
 
virtual void flush (void) override
 
virtual mframe::lang::ReadablegetReadable (void) override
 
virtual mframe::lang::AppendablegetAppendable (void) override
 
virtual int avariable (void) const override
 取得輸出緩存內剩餘多少位元組
 
virtual int pollByte (char &result) override
 檢索一個字節,並由此緩衝區刪除
 
virtual int poll (mframe::lang::Appendable &appendable) override
 檢索至Appendable指定數量字節,並由此緩衝區刪除
 
virtual int poll (void *pointer, int length) override
 檢索至pointer指定數量字節,並由此緩衝區刪除
 
virtual int skip (int length) override
 跳躍指定的字結數量,並由此緩衝區刪除。
 
virtual void lock (bool enable) override
 鎖定緩存,取出不移除。
 
virtual int remaining (void) const override
 取得緩衝區剩餘空閒字節數。
 
virtual int putByte (const char result) override
 將字節輸入至緩衝區。
 
virtual int put (mframe::lang::Readable &readBuffer) override
 將readable內資料輸入至緩衝區。
 
virtual int put (const void *buffer, int bufferSize) override
 將指針內資料輸入至緩衝區。
 
int limit (void) const
 
int capacity (void) const
 
int position (void) const
 
ByteBufferreset (void)
 
ByteBuffermark (void)
 
ByteBufferrewind (void)
 
bool pollByte (uint8 &result)
 Get the Byte object.
 
bool pollShort (uint16 &result)
 Get the Short object.
 
bool pollInt (uint32 &result)
 Get the Int object.
 
mframe::lang::Memorymemory (void)
 
bool limit (int newLimit)
 
bool position (int newPosition)
 
void flip (void)
 
void move (int position)
 
bool put (const char *string)
 
bool put (const mframe::lang::Strings &string)
 
int putFormat (const char *format,...)
 
int putFormat (const char *format, va_list args)
 
bool putShort (const short value)
 
bool putInt (const int value)
 
bool putFloat (const float value)
 
bool pollShort (short &result)
 Get the Short object.
 
bool pollInt (int &result)
 Get the Int object.
 
bool pollFloat (float &result)
 Get the Float object.
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Object
 Object (void)
 Construct a new Object object.
 
virtual ~Object (void) override
 Destroy the Object object.
 
void * operator new (size_t n)
 
void * operator new (size_t n, void *p)
 
mframe::lang::ObjectgetObject (void) override
 取得類Object
 
void delay (int milliseconds) const
 函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。
 
bool equals (Object *object) const
 函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。
 
bool equals (Object &object) const
 函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。
 
void wait (void) const
 導致當前線程等待,直到另一個線程調用此對象的notify()方法或notifyAll()方法,或指定的時間 已過。
 
bool wait (int timeout) const
 導致當前線程等待,直到另一個線程調用此對象的 notify()方法或 notifyAll()方法,或其他一些線 程中斷當前線程,或一定量的實時時間。
 
bool yield (void) const
 函數yield()將控制權傳遞給處於READY狀態且具有相同優先級的下一個線程。 如果在READY狀態下沒有其他優先級相同的線程,則當前線程繼續執行,不會發生線程切換。
 
int lock (void) const
 核心鎖定,在調用unlock以前將不會進行執行緒切換
 
int unlock (void) const
 核心解鎖。
 
mframe::sys::ThreadcurrentThread (void) const
 取得當前的執行緒
 
virtual int hashcode (void) const
 返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Interface
virtual ~Interface (void)=default
 Destroy the struct object.
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Appendable
int put (mframe::lang::Readable &&Readable)
 將Readable內資料輸入至緩衝區。
 
bool isFull (void) const
 取得Appendable是否已滿。
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Readable
bool isEmpty (void) const
 輸出緩存是否為空?
 
int poll (mframe::lang::Appendable &&appendable)
 檢索至Appendable,並由此緩衝區刪除
 

額外的繼承成員

- 保護屬性 繼承自 mframe::io::ByteBuffer
mframe::lang::Memory vMemory
 
int vPosition
 
int vMark
 
int vLimit
 
bool vUnlock
 

建構子與解構子說明文件

◆ ByteBufferInvert() [1/2]

mframe::io::ByteBufferInvert::ByteBufferInvert ( const mframe::lang::Memory & memory)

Construct a new Byte Buffer Invert object.

參數
memory

◆ ByteBufferInvert() [2/2]

mframe::io::ByteBufferInvert::ByteBufferInvert ( int length)

Construct a new Byte Buffer Invert object.

參數
length

函式成員說明文件

◆ pollIntMsb() [1/2]

bool mframe::io::ByteBufferInvert::pollIntMsb ( int & result)

Get the Int Msb object.

參數
result
傳回值
true
false

◆ pollIntMsb() [2/2]

bool mframe::io::ByteBufferInvert::pollIntMsb ( uint32 & result)
inline

Get the Int Msb object.

參數
result
傳回值
true
false

◆ pollShortMsb() [1/2]

bool mframe::io::ByteBufferInvert::pollShortMsb ( short & result)

Get the Short Msb object.

參數
result
傳回值
true
false

◆ pollShortMsb() [2/2]

bool mframe::io::ByteBufferInvert::pollShortMsb ( uint16 & result)
inline

Get the Short Msb object.

參數
result
傳回值
true
false

◆ putFloatMsb()

bool mframe::io::ByteBufferInvert::putFloatMsb ( const float value)
參數
value
傳回值
true
false

◆ putIntMsb()

bool mframe::io::ByteBufferInvert::putIntMsb ( const int value)
參數
value
傳回值
true
false

◆ putShortMsb()

bool mframe::io::ByteBufferInvert::putShortMsb ( const short value)
參數
value
傳回值
true
false

此類別(class) 文件是由下列檔案中產生: