dynamic_array.h v0.3.1
Reference-counted dynamic arrays for C
Loading...
Searching...
No Matches
Public Attributes | List of all members
da_builder_t Struct Reference

ArrayBuffer-style builder for efficient array construction. More...

#include <dynamic_array.h>

Public Attributes

int length
 Current number of elements.
 
int capacity
 Allocated capacity.
 
int element_size
 Size of each element in bytes.
 
void * data
 Pointer to element data.
 

Detailed Description

ArrayBuffer-style builder for efficient array construction.

Note
Not thread-safe
Always uses doubling growth strategy for fast construction
Convert to da_array with da_builder_to_array() for sharing/efficiency

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