 |
Xyris
0.5
|
Kernel error definitions.
int Dequeue(T *buf)
Dequeues from the circular buffer and writes the value to the data pointer.
RingBuffer()
Initializes the circular buffer and allocates the data memory.
int Peek(T *buf)
Grab the latest bytes of data from the buffer without removing it.
int Error()
Returns the ring buffer error code.
int Enqueue(T val)
Writes a byte into the circular buffer.
int Capacity()
Returns the buffer capacity (in number of bytes).
int Length()
Returns the number of items (bytes) in the buffer.
T Dequeue()
Dequeues from the circular buffer and returns the data.
bool IsEmpty()
Query whether the circular buffer is empty.
bool IsFull()
Query whether the circular buffer is full.