void ra8_webp_arena_unbind(void)
Unbind the active arena; subsequent allocation hooks fail with nullptr.
void * ra8_webp_arena_calloc(size_t nmemb, size_t size)
libwebp WebPSafeCalloc hook: zeroed nmemb * size bytes.
void ra8_webp_arena_free(void *p)
libwebp WebPSafeFree hook: release a block; auto-reset when none live.
void ra8_webp_arena_bind(ra8_webp_arena_t *arena)
Bind arena as the active scratch for subsequent decode allocations.
void * ra8_webp_arena_malloc(size_t n)
libwebp WebPSafeMalloc hook: bump n bytes from the bound arena.
Caller-owned bump arena backing a single WebP decode.
size_t cap
Backing-store capacity in bytes.
uint8_t * base
First byte of caller-owned backing store (>= cap bytes).
uint32_t live
Count of outstanding (unfreed) allocations.
size_t offset
Bump cursor; next allocation starts here.