Kohi Game Engine
linear_allocator Struct Reference

The data structure for a linear allocator. More...

#include <linear_allocator.h>

Data Fields

u64 total_size
 The total size of memory in the allocator. More...
 
u64 allocated
 The amount of memory currently allocated. More...
 
void * memory
 The internal block of memory used by the allocator. More...
 
b8 owns_memory
 Indicates if the allocator owns the memory (meaning it performed the allocation itself) or whether it was provided by an outside source. More...
 

Detailed Description

The data structure for a linear allocator.

Field Documentation

◆ allocated

u64 allocated

The amount of memory currently allocated.

◆ memory

void* memory

The internal block of memory used by the allocator.

◆ owns_memory

b8 owns_memory

Indicates if the allocator owns the memory (meaning it performed the allocation itself) or whether it was provided by an outside source.

◆ total_size

u64 total_size

The total size of memory in the allocator.


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