88typedef enum : uint32_t {
105typedef enum :
size_t {
181 const uint8_t* content,
232 const uint8_t* content,
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
HTML / CSS reflow + paginate engine for the ra8d2 ereader.
ra8_err_t reflow_cache_size(const reflow_t *engine, size_t *out_bytes)
Report the exact serialised size of an engine's current layout.
reflow_cache_layout_t
Byte sizes of the serialised header and per-record payloads.
@ k_reflow_cache_page_bytes
Serialised bytes per page.
@ k_reflow_cache_glyph_bytes
Serialised bytes per glyph.
@ k_reflow_cache_header_bytes
Fixed header size, bytes.
ra8_err_t reflow_cache_serialize(const reflow_t *engine, const uint8_t *content, size_t content_len, uint8_t *out_buf, size_t out_cap, size_t *out_len)
Serialise the laid-out pages of engine into a keyed byte blob.
ra8_err_t reflow_cache_load(reflow_t *engine, const uint8_t *content, size_t content_len, const uint8_t *buf, size_t len)
Validate a cache blob and, if it matches, restore the layout.
reflow_cache_id_t
On-wire format identity for a serialised pagination cache.
@ k_reflow_cache_magic
Blob magic ('R''F''C''1').
@ k_reflow_cache_version
Serialised format version.
Reflow / pagination engine state.