Ruby 4.1.0dev (2026-03-07 revision 66e61d0cffca501f335175c6ca4948d535a0e86d)
Data Fields
pm_arena_block Struct Reference

A single block of memory in the arena. More...

#include <pm_arena.h>

Data Fields

struct pm_arena_blockprev
 The previous block in the chain (for freeing).
 
size_t capacity
 The total usable bytes in data[].
 
size_t used
 The number of bytes consumed so far.
 
char data [PM_FLEX_ARY_LEN]
 The block's data.
 

Detailed Description

A single block of memory in the arena.

Blocks are linked via prev pointers so they can be freed by walking the chain.

Definition at line 20 of file pm_arena.h.

Field Documentation

◆ capacity

size_t pm_arena_block::capacity

The total usable bytes in data[].

Definition at line 25 of file pm_arena.h.

Referenced by pm_arena_alloc(), and pm_arena_free().

◆ data

char pm_arena_block::data[PM_FLEX_ARY_LEN]

The block's data.

Definition at line 31 of file pm_arena.h.

Referenced by pm_arena_alloc().

◆ prev

struct pm_arena_block* pm_arena_block::prev

The previous block in the chain (for freeing).

Definition at line 22 of file pm_arena.h.

Referenced by pm_arena_alloc(), and pm_arena_free().

◆ used

size_t pm_arena_block::used

The number of bytes consumed so far.

Definition at line 28 of file pm_arena.h.

Referenced by pm_arena_alloc().


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