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

Arena allocator structure. More...

#include <memory.h>

Collaboration diagram for ArenaAllocator:
Collaboration graph
[legend]

Public Attributes

size_t offset
 
Bufferbuffer
 
Bufferhead
 
size_t next_buffer_size
 
size_t total_allocated
 

Detailed Description

Arena allocator structure.

Member Data Documentation

◆ buffer

Buffer* ArenaAllocator::buffer

Pointer to the current active buffer.

◆ head

Buffer* ArenaAllocator::head

Pointer to the first buffer in the chain.

◆ next_buffer_size

size_t ArenaAllocator::next_buffer_size

Size to use for the next buffer allocation.

◆ offset

size_t ArenaAllocator::offset

Current offset in the active buffer.

◆ total_allocated

size_t ArenaAllocator::total_allocated

Total bytes allocated across all buffers.


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