|
|
|
Destructor. |
|
Returns the size of the ring buffer. |
|
Returns the number of bytes which still can be stored inside the ring buffer. |
|
Returns the number of times the buffer was empty. |
|
Returns the number of times the buffer was full. |
|
Returns the maximum number of bytes which can be read with a following call to GWEN_RingBuffer_ReadBytes. This value (if not 0) can be used for GWEN_RingBuffer_SkipBytesRead. |
|
Returns the maximum number of bytes which can be written with a following call to GWEN_RingBuffer_WriteBytes. This value (if not 0) can be used for GWEN_RingBuffer_SkipBytesWrite. |
|
Returns the maximum number of bytes which has been stored in the buffer. |
|
Returne the current read pointer. Please note that the return value of GWEN_RingBuffer_GetMaxUnsegmentedRead indicates the maximum number of bytes at this position available! Trying to access bytes beyond that boundary will most likely result in segmentation faults. Please make sure that you call GWEN_RingBuffer_SkipBytesRead after taking data from the buffer in order to keep the internal structure intact. |
|
Returns the number of bytes which have passed through this buffer (i.e. bytes that have been written to and read from the buffer. |
|
Returns the number of bytes stored inside the ring buffer. |
|
Returne the current write pointer. Please note that the return value of GWEN_RingBuffer_GetMaxUnsegmentedWrite indicates the maximum number of bytes at this position available! Trying to access bytes beyond that boundary will most likely result in segmentation faults. Please make sure that you call GWEN_RingBuffer_SkipBytesWrite after writing data to the buffer in order to keep the internal structure intact. |
|
Creates a new ring buffer
|
|
Reads a single byte from the ring buffer. |
|
Read bytes from the ring buffer.
|
|
|
|
|
|
|
|
Resets the counter for the maximum number of bytes stored in the buffer. |
|
Resets the buffers throughput counter to zero. |
|
Adjusts the internal pointers and statistical data as if GWEN_RingBuffer_ReadBytes had been called. Please note that the size value given here MUST be <= the value returned by GWEN_RingBuffer_GetMaxUnsegmentedRead ! |
|
Adjusts the internal pointers and statistical data as if GWEN_RingBuffer_WriteBytes had been called. Please note that the size value given here MUST be <= the value returned by GWEN_RingBuffer_GetMaxUnsegmentedWrite ! |
|
Writes a single byte to the ring buffer. |
|
Writes the given bytes into the ring buffer.
|