|
Zycore 1.5.2
Zyan Core Library for C
|
Defines the ZyanVector struct. More...
#include <Vector.h>
Data Fields | |
| ZyanAllocator * | allocator |
| The memory allocator. | |
| ZyanU8 | growth_factor |
| The growth factor. | |
| ZyanU8 | shrink_threshold |
| The shrink threshold. | |
| ZyanUSize | size |
| The current number of elements in the vector. | |
| ZyanUSize | capacity |
| The maximum capacity (number of elements). | |
| ZyanUSize | element_size |
| The size of a single element in bytes. | |
| ZyanMemberProcedure | destructor |
| The element destructor callback. | |
| void * | data |
| The data pointer. | |
Defines the ZyanVector struct.
All fields in this struct should be considered as "private". Any changes may lead to unexpected behavior.
| ZyanAllocator* allocator |
The memory allocator.
| ZyanUSize capacity |
The maximum capacity (number of elements).
| void* data |
The data pointer.
| ZyanMemberProcedure destructor |
The element destructor callback.
| ZyanUSize element_size |
The size of a single element in bytes.
| ZyanU8 growth_factor |
The growth factor.
| ZyanU8 shrink_threshold |
The shrink threshold.
| ZyanUSize size |
The current number of elements in the vector.