libarena
Arena memory management library
Loading...
Searching...
No Matches
Arena Struct Reference

Arena structure. More...

#include <arena.h>

Data Fields

void * mem
 A pointer to the memory block of the arena.
 
void * ptr
 A pointer to the current position in the memory block.
 
ArenaBlockhead
 A pointer to the head block of the arena.
 
size_t idx
 The index of the current block within the arena.
 
size_t size
 The size of the memory block in bytes.
 
size_t maxBlocks
 The maximum number of blocks that can be allocated in the arena.
 
bool managed
 A flag indicating whether the arena is managed or not.
 

Detailed Description

Arena structure.

This structure represents an arena of memory. It contains information about the arena's memory, pointer, head block, index, size, maximum block count, and management status.

Field Documentation

◆ head

ArenaBlock* head

A pointer to the head block of the arena.

◆ idx

size_t idx

The index of the current block within the arena.

◆ managed

bool managed

A flag indicating whether the arena is managed or not.

◆ maxBlocks

size_t maxBlocks

The maximum number of blocks that can be allocated in the arena.

◆ mem

void* mem

A pointer to the memory block of the arena.

◆ ptr

void* ptr

A pointer to the current position in the memory block.

◆ size

size_t size

The size of the memory block in bytes.


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