chillbuff
|
#include <chillbuff.h>
Public Attributes | |
void * | array |
size_t | length |
size_t | capacity |
size_t | element_size |
chillbuff_growth_method | growth_method |
Self-reallocating dynamic size array of no strictly defined type. Easy 'n' "chill" (hope you like segmentation fault errors).
void* chillbuff::array |
The buffer's underlying array that stores the data.
size_t chillbuff::capacity |
The current buffer capacity. This grows dynamically according to the specified chillbuff_growth_method.
size_t chillbuff::element_size |
The size of each stored element. DO NOT CHANGE THIS! Only read (if necessary)...
chillbuff_growth_method chillbuff::growth_method |
The way the buffer's capacity is increased when it's full.
size_t chillbuff::length |
The current amount of elements stored in the chillbuff. DO NOT touch this yourself, only read!