solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Attributes | List of all members
ArenaBlock Struct Reference

#include <arena.h>

Collaboration diagram for ArenaBlock:
[legend]

Public Attributes

char * end
 
bool is_static
 

Detailed Description

Block descriptor. For overflow blocks this struct is stored at the start of the heap allocation itself (co-located), so each new block costs one call to aligned_alloc_xp instead of two. The usable region begins at block->base.

The first block uses first_block inside Arena and points into a caller- or TLS-provided buffer, so is_static is set and its memory is never freed.

Definition at line 62 of file arena.h.

Member Data Documentation

◆ end

char* ArenaBlock::end

Start of usable region (past header + alignment padding).

Definition at line 65 of file arena.h.

◆ is_static

bool ArenaBlock::is_static

One past the last byte of this block's buffer.

Definition at line 66 of file arena.h.


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