libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblArenaAllocatorState Struct Reference

#include <gimbal_arena_allocator.h>

Data Fields

GblArenaAllocatorPagepActivePage
 
size_t bytesUsed
 

Detailed Description

Represents the current state of a GblArenaAllocator.

GblArenaAllocatorState is an auxiliary struct whose purpose is to capture the current page state associated with a given arena allocator, so that it may be use to "restore" the arena's state later.

This is useful for wanting to make temporary use of an arena's resources, allowing you to free them when you're done.

See also
GblArenaAllocator GblArenaAllocatorPage

Definition at line 117 of file gimbal_arena_allocator.h.

Field Documentation

◆ pActivePage

GblArenaAllocatorPage* GblArenaAllocatorState::pActivePage

Definition at line 118 of file gimbal_arena_allocator.h.

◆ bytesUsed

size_t GblArenaAllocatorState::bytesUsed

Definition at line 119 of file gimbal_arena_allocator.h.


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