rapido
|
A growing and cycling buffer, also tracking the ranges of bytes present in the buffer following a global read_offset. More...
#include <rapido.h>
Data Fields | |
struct { | |
void * data | |
size_t capacity | |
size_t offset | |
} | buffer |
rapido_range_list_t | ranges |
size_t | read_offset |
A growing and cycling buffer, also tracking the ranges of bytes present in the buffer following a global read_offset.
The offset advances as data is read out of the buffer. Due to cycling, the buffer can allocate or return a smaller memory zone than wanted.