Base Framework
|
ORB buffer. More...
#include <base/rmi/OrbBuffer.h>
Inherits Object.
Public Member Functions | |
OrbBuffer (unsigned int size) | |
OrbBuffer * | getNext () noexcept |
void | setNext (OrbBuffer *next) noexcept |
void | reset () noexcept |
unsigned int | getReadable () const noexcept |
unsigned int | getWriteable () const noexcept |
bool | isEmpty () const noexcept |
bool | isFull () const noexcept |
uint8 * | push (unsigned int size) noexcept |
const uint8 * | pull (unsigned int size) noexcept |
ORB buffer.
Fast buffer implementation intended for linked lists.
|
inline |
Initializes the buffer with the specified size.
|
inlinenoexcept |
Returns the next buffer.
|
inlinenoexcept |
Returns the number of readable bytes.
|
inlinenoexcept |
Returns the number of writeable bytes.
|
inlinenoexcept |
Returns true if no bytes are available for reading.
|
inlinenoexcept |
Returns true if no bytes may be written.
|
inlinenoexcept |
Reads the specified number of bytes.
size | The number of bytes to read. |
|
inlinenoexcept |
Allocates the specified number of bytes.
size | The number of bytes to write. |
|
inlinenoexcept |
Resets the buffer.
|
inlinenoexcept |
Sets the next buffer.