|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-owned bump arena backing a single image decode. More...
#include <reflow_image.h>
Data Fields | |
| uint8_t * | base |
| Caller-owned scratch buffer. | |
| size_t | cap |
| Scratch capacity, bytes. | |
| size_t | offset |
| Current bump offset. | |
| size_t | live |
| Live (allocated, not freed) blocks. | |
Caller-owned bump arena backing a single image decode.
A linear bump allocator over base[0..cap) with a live-block count: stb_image's allocations bump offset, each free decrements live, and the arena auto-resets to empty when live reaches 0 – so it fully drains after each decode with no caller bookkeeping and no fragmentation.
Definition at line 41 of file reflow_image.h.
| uint8_t* ra8_img_arena_t::base |
Caller-owned scratch buffer.
Definition at line 42 of file reflow_image.h.
Referenced by ra8_img_arena_malloc().
| size_t ra8_img_arena_t::cap |
Scratch capacity, bytes.
Definition at line 43 of file reflow_image.h.
Referenced by ra8_img_arena_malloc().
| size_t ra8_img_arena_t::live |
Live (allocated, not freed) blocks.
Definition at line 45 of file reflow_image.h.
Referenced by internal_arena_release(), ra8_img_arena_bind(), ra8_img_arena_free(), and ra8_img_arena_malloc().
| size_t ra8_img_arena_t::offset |
Current bump offset.
Definition at line 44 of file reflow_image.h.
Referenced by internal_arena_release(), ra8_img_arena_bind(), ra8_img_arena_free(), and ra8_img_arena_malloc().