chillbuff
Public Attributes | List of all members
chillbuff Struct Reference

#include <chillbuff.h>

Public Attributes

void * array
 
size_t length
 
size_t capacity
 
size_t element_size
 
chillbuff_growth_method growth_method
 

Detailed Description

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

Member Data Documentation

◆ array

void* chillbuff::array

The buffer's underlying array that stores the data.

◆ capacity

size_t chillbuff::capacity

The current buffer capacity. This grows dynamically according to the specified chillbuff_growth_method.

◆ element_size

size_t chillbuff::element_size

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

◆ growth_method

chillbuff_growth_method chillbuff::growth_method

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

◆ length

size_t chillbuff::length

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


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