|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Builder state: the arenas plus running counts and a sticky-fail flag. More...
#include <rabook_compile.h>
Data Fields | |
| ra8_rabook_buffers_t | buf |
| Caller-provided arenas. | |
| uint32_t | chapter_count |
| Chapters appended so far. | |
| uint32_t | node_count |
| Nodes appended so far. | |
| uint32_t | attr_count |
| Attributes appended so far. | |
| uint32_t | stylesheet_count |
| Stylesheets appended so far. | |
| uint32_t | image_count |
| Images appended so far. | |
| uint32_t | string_size |
| String-pool bytes used. | |
| uint32_t | image_pool_size |
| Image-pool bytes used. | |
| uint32_t | title_off |
| Metadata: title string offset. | |
| uint32_t | author_off |
| Metadata: author string offset. | |
| uint32_t | language_off |
| Metadata: language string offset. | |
| uint32_t | identifier_off |
| Metadata: identifier string offset. | |
| uint32_t | cover_image_index |
| Cover image index, or nil. | |
| uint32_t | flags |
| Reserved header flags (0 in v1). | |
| uint8_t | image_pool_mode |
| Internal builder storage mode. | |
| bool | failed |
| Sticky: an arena overflowed. | |
Builder state: the arenas plus running counts and a sticky-fail flag.
Initialise with rabook_compile_init; treat the fields as private. failed latches on the first arena overflow so the caller can build optimistically and check once at ra8_rabook_finalize.
Definition at line 98 of file rabook_compile.h.
| uint32_t ra8_rabook_ctx_t::attr_count |
Attributes appended so far.
Definition at line 102 of file rabook_compile.h.
Referenced by internal_append_attrs(), internal_compute_layout(), internal_make_header(), and ra8_rabook_add_element().
| uint32_t ra8_rabook_ctx_t::author_off |
Metadata: author string offset.
Definition at line 108 of file rabook_compile.h.
Referenced by internal_make_header(), and ra8_rabook_set_metadata().
| ra8_rabook_buffers_t ra8_rabook_ctx_t::buf |
Caller-provided arenas.
Definition at line 99 of file rabook_compile.h.
Referenced by internal_append_attrs(), internal_append_image_descriptor(), internal_crc_image_pool(), internal_intern_span(), internal_segments(), internal_validate_memory_finalize(), internal_write_image_pool(), ra8_rabook_add_chapter(), ra8_rabook_add_element(), ra8_rabook_add_image(), ra8_rabook_add_image_external(), ra8_rabook_add_stylesheet(), ra8_rabook_add_text(), ra8_rabook_finalize(), ra8_rabook_intern(), ra8_rabook_link_child(), ra8_rabook_link_sibling(), and rabook_compile_init().
| uint32_t ra8_rabook_ctx_t::chapter_count |
Chapters appended so far.
Definition at line 100 of file rabook_compile.h.
Referenced by internal_compute_layout(), internal_make_header(), and ra8_rabook_add_chapter().
| uint32_t ra8_rabook_ctx_t::cover_image_index |
Cover image index, or nil.
Definition at line 111 of file rabook_compile.h.
Referenced by internal_make_header(), ra8_rabook_set_metadata(), and rabook_compile_init().
| bool ra8_rabook_ctx_t::failed |
Sticky: an arena overflowed.
Definition at line 114 of file rabook_compile.h.
Referenced by internal_attributes(), internal_intern_span(), internal_store_image(), internal_validate_memory_finalize(), internal_validate_stream_args(), ra8_rabook_add_chapter(), ra8_rabook_add_element(), ra8_rabook_add_image(), ra8_rabook_add_image_external(), ra8_rabook_add_stylesheet(), ra8_rabook_add_text(), ra8_rabook_intern(), ra8_rabook_set_metadata(), and ra8_rabook_xml_parse_chapter().
| uint32_t ra8_rabook_ctx_t::flags |
Reserved header flags (0 in v1).
Definition at line 112 of file rabook_compile.h.
Referenced by internal_make_header().
| uint32_t ra8_rabook_ctx_t::identifier_off |
Metadata: identifier string offset.
Definition at line 110 of file rabook_compile.h.
Referenced by internal_make_header(), and ra8_rabook_set_metadata().
| uint32_t ra8_rabook_ctx_t::image_count |
Images appended so far.
Definition at line 104 of file rabook_compile.h.
Referenced by internal_append_image_descriptor(), internal_compute_layout(), internal_make_header(), ra8_rabook_add_image(), and ra8_rabook_add_image_external().
| uint8_t ra8_rabook_ctx_t::image_pool_mode |
Internal builder storage mode.
Definition at line 113 of file rabook_compile.h.
Referenced by internal_crc_image_pool(), internal_validate_stream_args(), internal_write_image_pool(), ra8_rabook_add_image(), and ra8_rabook_add_image_external().
| uint32_t ra8_rabook_ctx_t::image_pool_size |
Image-pool bytes used.
Definition at line 106 of file rabook_compile.h.
Referenced by internal_compute_layout(), internal_crc_image_pool(), internal_make_header(), internal_store_image(), internal_validate_stream_args(), internal_write_image_pool(), ra8_rabook_add_image(), and ra8_rabook_add_image_external().
| uint32_t ra8_rabook_ctx_t::language_off |
Metadata: language string offset.
Definition at line 109 of file rabook_compile.h.
Referenced by internal_make_header(), and ra8_rabook_set_metadata().
| uint32_t ra8_rabook_ctx_t::node_count |
Nodes appended so far.
Definition at line 101 of file rabook_compile.h.
Referenced by internal_compute_layout(), internal_make_header(), ra8_rabook_add_element(), ra8_rabook_add_text(), ra8_rabook_link_child(), and ra8_rabook_link_sibling().
| uint32_t ra8_rabook_ctx_t::string_size |
String-pool bytes used.
Definition at line 105 of file rabook_compile.h.
Referenced by internal_compute_layout(), internal_intern_span(), internal_make_header(), internal_segments(), and ra8_rabook_intern().
| uint32_t ra8_rabook_ctx_t::stylesheet_count |
Stylesheets appended so far.
Definition at line 103 of file rabook_compile.h.
Referenced by internal_compute_layout(), internal_make_header(), and ra8_rabook_add_stylesheet().
| uint32_t ra8_rabook_ctx_t::title_off |
Metadata: title string offset.
Definition at line 107 of file rabook_compile.h.
Referenced by internal_make_header(), and ra8_rabook_set_metadata().