Ringbuffer. More...
Ringbuffer.
Non thread-safe FIFO ringbuffer implementation around a char
array.
Definition at line 36 of file ringbuffer.h.
#include <ringbuffer.h>
Data Fields | |
char * | buf |
Buffer to operate on. | |
unsigned int | size |
Size of buf. | |
unsigned int | start |
Current read position in the ring buffer. | |
unsigned int | avail |
Number of elements available for reading. | |
unsigned int ringbuffer_t::avail |
Number of elements available for reading.
Definition at line 40 of file ringbuffer.h.
char* ringbuffer_t::buf |
Buffer to operate on.
Definition at line 37 of file ringbuffer.h.
unsigned int ringbuffer_t::size |
Size of buf.
Definition at line 38 of file ringbuffer.h.
unsigned int ringbuffer_t::start |
Current read position in the ring buffer.
Definition at line 39 of file ringbuffer.h.