Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
Loading...
Searching...
No Matches
Public Attributes | List of all members
GrowableArray Struct Reference

Growable array backed by an arena allocator. More...

#include <memory.h>

Collaboration diagram for GrowableArray:
Collaboration graph
[legend]

Public Attributes

void * data
 
size_t count
 
size_t capacity
 
size_t item_size
 
ArenaAllocatorarena
 

Detailed Description

Growable array backed by an arena allocator.

Member Data Documentation

◆ arena

ArenaAllocator* GrowableArray::arena

Arena allocator used for storage.

◆ capacity

size_t GrowableArray::capacity

Total allocated elements capacity.

◆ count

size_t GrowableArray::count

Number of elements currently stored.

◆ data

void* GrowableArray::data

Pointer to array data.

◆ item_size

size_t GrowableArray::item_size

Size of each element in bytes.


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