31typedef enum : uint32_t {
static uint8_t s_arena[k_c6_cam_arena_bytes]
static size_t s_high_water
Peak s_offset observed since boot (diagnostic).
void * ra8_stbtt_malloc(size_t n)
Allocate n bytes of glyph scratch from the static arena.
static size_t s_live
Count of live (allocated, not yet freed) blocks.
static size_t s_offset
Current bump offset into s_arena, bytes.
void ra8_stbtt_free(void *p)
Release a block previously returned by ra8_stbtt_malloc().
ra8_stbtt_alloc_consts_t
Arena sizing knobs (no magic numbers).
@ k_ra8_stbtt_align
Allocation alignment, bytes.
@ k_ra8_stbtt_arena_bytes
3x the 32 KiB worst case.
@ k_ra8_stbtt_align_mask
k_ra8_stbtt_align - 1.
size_t ra8_stbtt_alloc_high_water(void)
Worst-case arena high-water mark observed since boot, in bytes.
Heap-free scratch allocator for stb_truetype (glyph rasterise).