ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
jof_bump_t Struct Reference

Linear (bump) allocator over the caller's work arena. More...

#include <jof_internal.h>

Data Fields

uint8_t * base
 Arena base (caller's work buffer).
size_t cap
 Arena capacity, bytes.
size_t off
 First free byte.

Detailed Description

Linear (bump) allocator over the caller's work arena.

Carves 8-byte-aligned regions front to back; exhaustion is the producer's fail-closed "source too large for the configured budget" signal. Never frees – the arena resets per transcode.

Invariant
off <= cap at all times.
Since
0.1.0

Definition at line 58 of file jof_internal.h.

Field Documentation

◆ base

uint8_t* jof_bump_t::base

Arena base (caller's work buffer).

Definition at line 59 of file jof_internal.h.

Referenced by priv_jof_bump_take().

◆ cap

size_t jof_bump_t::cap

Arena capacity, bytes.

Definition at line 60 of file jof_internal.h.

Referenced by priv_jof_bump_take().

◆ off

size_t jof_bump_t::off

First free byte.

Definition at line 61 of file jof_internal.h.

Referenced by priv_jof_bump_take().


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