|
C Container Collection (CCC)
|
#include <private_flat_buffer.h>
A Flat_buffer is a contiguous array of a uniform type. The user can specify any type. The Flat_buffer can be fixed size if no allocation permission is given or dynamic if allocation permission is granted. The Flat_buffer can also be manually resized via the interface.
Data Fields | |
| void * | data |
| size_t | count |
| size_t | capacity |
| size_t | sizeof_type |
| size_t CCC_Flat_buffer::capacity |
The total Flat_buffer slots possible for this array.
| size_t CCC_Flat_buffer::count |
The current count of active Flat_buffer slots.
| void* CCC_Flat_buffer::data |
The contiguous memory of uniform type.
| size_t CCC_Flat_buffer::sizeof_type |
The size of the type the user stores in the buffer.