chillbuff

Self-reallocating dynamic size array of no strictly defined type. Easy 'n' "chill" (hope you like segmentation fault errors).

Members

Variables

array
void* array;

The buffer's underlying array that stores the data.

capacity
size_t capacity;

The current buffer capacity. This grows dynamically according to the specified {@link #chillbuff_growth_method}.

element_size
size_t element_size;

The size of each stored element. DO NOT CHANGE THIS! Only read (if necessary)...

growth_method
chillbuff_growth_method growth_method;

The way the buffer's capacity is increased when it's full.

length
size_t length;

The current amount of elements stored in the chillbuff. DO NOT touch this yourself, only read!

Meta