Lucciefr
Lua code caving, injection and exploration framework
Data Fields
ringbuffer_t Struct Reference

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_tfree
 (optional) function to release memory on element removal
 

Detailed Description

Ring buffer structure.

See also
ringbuffer.c

The documentation for this struct was generated from the following file: