|
Ruby 4.1.0dev (2026-03-07 revision 66e61d0cffca501f335175c6ca4948d535a0e86d)
|
A single block of memory in the arena. More...
#include <pm_arena.h>
Data Fields | |
| struct pm_arena_block * | prev |
| 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. | |
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.
| 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().
| char pm_arena_block::data[PM_FLEX_ARY_LEN] |
| 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().
| 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().