|
libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_arena_allocator.h>

Data Fields | ||
| union { | ||
| struct GblArenaAllocatorPage * pNext | ||
| GblLinkedListNode listNode | ||
| }; | ||
| size_t | capacity | |
| size_t | used | |
| union { | ||
| GblBool staticAlloc | ||
| size_t padding | ||
| }; | ||
| unsigned char | bytes [1] | |
Represents a single arena allocation page.
GblArenaAllocatorPage is the meta data header and memory payload buffer for a preset number of bytes which can be allocated from a GblArenaAllocator
Definition at line 40 of file gimbal_arena_allocator.h.
| struct GblArenaAllocatorPage* GblArenaAllocatorPage::pNext |
Next (used) allocator page.
Definition at line 42 of file gimbal_arena_allocator.h.
| GblLinkedListNode GblArenaAllocatorPage::listNode |
Linked list node base.
Definition at line 43 of file gimbal_arena_allocator.h.
| size_t GblArenaAllocatorPage::capacity |
Page capacity.
Definition at line 45 of file gimbal_arena_allocator.h.
| size_t GblArenaAllocatorPage::used |
Number of bytes filled on page.
Definition at line 46 of file gimbal_arena_allocator.h.
| GblBool GblArenaAllocatorPage::staticAlloc |
Whether this page is static or heap allocated.
Definition at line 48 of file gimbal_arena_allocator.h.
| size_t GblArenaAllocatorPage::padding |
Definition at line 49 of file gimbal_arena_allocator.h.
| unsigned char GblArenaAllocatorPage::bytes[1] |
first byte of data segment
Definition at line 51 of file gimbal_arena_allocator.h.