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

Parsed, bounds-checked view of a resident "RBKC" container file. More...

Data Fields

const uint8_t * table
 First chunk-table byte (unaligned).
const uint8_t * payload
 First byte of the chunk zlib streams.
uint64_t total
 Flat-blob inflated total in bytes.
uint64_t payload_len
 Concatenated stream bytes in the file.
uint32_t chunk_bytes
 Inflated bytes per chunk (last short).
uint32_t chunk_count
 Number of chunks.

Detailed Description

Parsed, bounds-checked view of a resident "RBKC" container file.

Populated by internal_container_view(); every pointer aims into the caller's file buffer and every extent was verified against file_len, so the inflate loop can trust it without re-checking.

Invariant
table covers chunk_count + 1 entries; payload covers payload_len bytes; both lie within the original file buffer.
Since
Version 0.1.0

Definition at line 342 of file book.c.

Field Documentation

◆ chunk_bytes

uint32_t book_container_view_t::chunk_bytes

Inflated bytes per chunk (last short).

Definition at line 347 of file book.c.

Referenced by internal_container_view(), and internal_inflate_chunks().

◆ chunk_count

uint32_t book_container_view_t::chunk_count

Number of chunks.

Definition at line 348 of file book.c.

Referenced by internal_container_view(), and internal_inflate_chunks().

◆ payload

const uint8_t* book_container_view_t::payload

First byte of the chunk zlib streams.

Definition at line 344 of file book.c.

Referenced by internal_container_view(), and internal_inflate_chunks().

◆ payload_len

uint64_t book_container_view_t::payload_len

Concatenated stream bytes in the file.

Definition at line 346 of file book.c.

Referenced by internal_container_view().

◆ table

const uint8_t* book_container_view_t::table

First chunk-table byte (unaligned).

Definition at line 343 of file book.c.

Referenced by internal_container_view(), and internal_inflate_chunks().

◆ total

uint64_t book_container_view_t::total

Flat-blob inflated total in bytes.

Definition at line 345 of file book.c.

Referenced by internal_container_view(), internal_inflate_chunks(), and internal_open_body().


The documentation for this struct was generated from the following file:
  • apps/shared_libs/book/src/book.c