|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
One open chunked .rabook file: parsed geometry + caller storage. More...
#include <book_chunked.h>
Data Fields | |
| ra8_vsource_read_fn | file_read |
| Container byte reader. | |
| void * | file_ctx |
| Reader context. | |
| book_inflate_fn | inflate_cb |
| zlib decompressor. | |
| const uint64_t * | table |
| Chunk offsets. | |
| uint32_t | table_cap_entries |
| Table entry capacity. | |
| uint8_t * | staging |
| Compressed-byte staging. | |
| uint32_t | staging_cap |
| Staging byte capacity. | |
| uint64_t | payload_off |
| First stream file offset. | |
| uint64_t | inflated_total |
| Served flat-blob length. | |
| uint32_t | chunk_bytes |
| Inflated bytes per chunk. | |
| uint32_t | chunk_count |
| Chunk count. | |
One open chunked .rabook file: parsed geometry + caller storage.
Populated by book_chunked_open; treat every field as read-only afterwards. file_read addresses the container file bytes (the compressed on-disk form); book_chunked_read then serves the inflated flat-blob byte space on top of it. table points at the caller's buffer holding chunk_count + 1 payload-relative stream offsets; staging receives one chunk's compressed bytes per read.
Definition at line 83 of file book_chunked.h.
| uint32_t book_chunked_t::chunk_bytes |
Inflated bytes per chunk.
Definition at line 93 of file book_chunked.h.
Referenced by book_chunked_read(), book_chunked_validate_strict(), internal_chunk_flat_read(), internal_chunked_open_body(), internal_header(), internal_load_chunk(), internal_validate_reader_fields(), and internal_validate_reader_table().
| uint32_t book_chunked_t::chunk_count |
Chunk count.
Definition at line 94 of file book_chunked.h.
Referenced by internal_chunked_open_body(), internal_header(), internal_load_table(), internal_table(), internal_table_check(), internal_validate_reader_fields(), internal_validate_reader_table(), and internal_validate_workspaces().
| void* book_chunked_t::file_ctx |
Reader context.
Definition at line 85 of file book_chunked.h.
Referenced by book_chunked_open(), internal_chunked_open_body(), internal_load_table(), and internal_stage_and_inflate().
| ra8_vsource_read_fn book_chunked_t::file_read |
Container byte reader.
Definition at line 84 of file book_chunked.h.
Referenced by book_chunked_open(), internal_chunked_open_body(), internal_load_table(), internal_stage_and_inflate(), and internal_validate_reader_fields().
| book_inflate_fn book_chunked_t::inflate_cb |
zlib decompressor.
Definition at line 86 of file book_chunked.h.
Referenced by book_chunked_open(), internal_stage_and_inflate(), and internal_validate_reader_fields().
| uint64_t book_chunked_t::inflated_total |
Served flat-blob length.
Definition at line 92 of file book_chunked.h.
Referenced by book_chunked_read(), book_chunked_validate_strict(), internal_chunk_flat_read(), internal_chunked_open_body(), internal_header(), internal_load_chunk(), internal_validate_reader_fields(), internal_validate_reader_table(), and mdl_rabook_vfs_info().
| uint64_t book_chunked_t::payload_off |
First stream file offset.
Definition at line 91 of file book_chunked.h.
Referenced by internal_load_table(), internal_stage_and_inflate(), internal_table(), and internal_validate_reader_table().
| uint8_t* book_chunked_t::staging |
Compressed-byte staging.
Definition at line 89 of file book_chunked.h.
Referenced by book_chunked_open(), internal_output_is_aliased(), internal_stage_and_inflate(), internal_validate_reader_fields(), and internal_validate_workspaces().
| uint32_t book_chunked_t::staging_cap |
Staging byte capacity.
Definition at line 90 of file book_chunked.h.
Referenced by book_chunked_open(), internal_output_is_aliased(), internal_table_check(), internal_validate_reader_fields(), internal_validate_reader_table(), and internal_validate_workspaces().
| const uint64_t* book_chunked_t::table |
Chunk offsets.
Definition at line 87 of file book_chunked.h.
Referenced by book_chunked_read(), internal_load_table(), internal_output_is_aliased(), internal_stage_and_inflate(), internal_table(), internal_validate_reader_fields(), internal_validate_reader_table(), and internal_validate_workspaces().
| uint32_t book_chunked_t::table_cap_entries |
Table entry capacity.
Definition at line 88 of file book_chunked.h.
Referenced by internal_load_table(), internal_output_is_aliased(), and internal_validate_reader_table().