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

Descriptor for one caller-owned miniz allocation arena. More...

#include <epub_miniz_alloc.h>

Data Fields

uint8_t * base
 Aligned caller workspace, or NULL when inactive.
size_t capacity
 Usable bytes; exactly the documented pool size.
uint8_t initialized
 1 after successful init; 0 after deinit.

Detailed Description

Descriptor for one caller-owned miniz allocation arena.

Initialise with epub_miniz_arena_init, then pass this descriptor as miniz's m_pAlloc_opaque. Treat the fields as read-only. Copying a live descriptor is forbidden because both copies would own the same workspace.

Definition at line 100 of file epub_miniz_alloc.h.

Field Documentation

◆ base

uint8_t* epub_miniz_arena_t::base

Aligned caller workspace, or NULL when inactive.

Definition at line 101 of file epub_miniz_alloc.h.

Referenced by internal_cell_at(), internal_end(), internal_header(), internal_in_pool(), internal_next(), internal_ready(), and internal_split().

◆ capacity

size_t epub_miniz_arena_t::capacity

Usable bytes; exactly the documented pool size.

Definition at line 102 of file epub_miniz_alloc.h.

Referenced by epub_miniz_arena_init(), internal_end(), internal_in_pool(), and internal_ready().

◆ initialized

uint8_t epub_miniz_arena_t::initialized

1 after successful init; 0 after deinit.

Definition at line 103 of file epub_miniz_alloc.h.

Referenced by internal_ready().


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