Zycore 1.5.2
Zyan Core Library for C
Loading...
Searching...
No Matches
ZyanVector_ Struct Reference

Defines the ZyanVector struct. More...

#include <Vector.h>

Collaboration diagram for ZyanVector_:
[legend]

Data Fields

ZyanAllocatorallocator
 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.

Detailed Description

Defines the ZyanVector struct.

All fields in this struct should be considered as "private". Any changes may lead to unexpected behavior.

Field Documentation

◆ allocator

ZyanAllocator* allocator

The memory allocator.

◆ capacity

ZyanUSize capacity

The maximum capacity (number of elements).

◆ data

void* data

The data pointer.

◆ destructor

ZyanMemberProcedure destructor

The element destructor callback.

◆ element_size

ZyanUSize element_size

The size of a single element in bytes.

◆ growth_factor

ZyanU8 growth_factor

The growth factor.

◆ shrink_threshold

ZyanU8 shrink_threshold

The shrink threshold.

◆ size

ZyanUSize size

The current number of elements in the vector.


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