![]() |
Lucciefr
Lua code caving, injection and exploration framework
|
Ring buffer structure. More...
#include <ringbuffer.h>
Data Fields | |
void ** | entries |
dynamic memory for an array of element pointers | |
size_t | position |
the current start of the list (oldest entry, "tail" pointer) | |
size_t | count |
the number of elements in the buffer (0 -> empty; == capacity -> full) | |
size_t | capacity |
maximum number of elements, should correspond to *entries array size | |
free_func_t * | free |
(optional) function to release memory on element removal | |
Ring buffer structure.