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

#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]
 

Detailed Description

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

See also
GblArenaAllocator

Definition at line 40 of file gimbal_arena_allocator.h.

Field Documentation

◆ pNext

struct GblArenaAllocatorPage* GblArenaAllocatorPage::pNext

Next (used) allocator page.

Definition at line 42 of file gimbal_arena_allocator.h.

◆ listNode

GblLinkedListNode GblArenaAllocatorPage::listNode

Linked list node base.

Definition at line 43 of file gimbal_arena_allocator.h.

◆ capacity

size_t GblArenaAllocatorPage::capacity

Page capacity.

Definition at line 45 of file gimbal_arena_allocator.h.

◆ used

size_t GblArenaAllocatorPage::used

Number of bytes filled on page.

Definition at line 46 of file gimbal_arena_allocator.h.

◆ staticAlloc

GblBool GblArenaAllocatorPage::staticAlloc

Whether this page is static or heap allocated.

Definition at line 48 of file gimbal_arena_allocator.h.

◆ padding

size_t GblArenaAllocatorPage::padding

Definition at line 49 of file gimbal_arena_allocator.h.

◆ bytes

unsigned char GblArenaAllocatorPage::bytes[1]

first byte of data segment

Definition at line 51 of file gimbal_arena_allocator.h.


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