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

One open RAR archive: the backing plus the detected generation. More...

#include <ra8_rar.h>

Data Fields

ra8_rar_read_fn read
 Byte reader over the container file.
void * ctx
 Context for read.
uint64_t size
 Container length in bytes.
uint64_t first_off
 Offset of the first block past the signature.
ra8_rar_version_t version
 Detected container generation.

Detailed Description

One open RAR archive: the backing plus the detected generation.

Populated by ra8_rar_open; treat every field as read-only afterwards. read addresses the container file bytes; first_off is the offset of the first block just past the signature, where ra8_rar_next begins.

Invariant
version != k_ra8_rar_ver_none and first_off <= size.
read != NULL between a successful open and the last use.
See also
ra8_rar_open()
Since
Version 0.1.0

Definition at line 144 of file ra8_rar.h.

Field Documentation

◆ ctx

void* ra8_rar_t::ctx

◆ first_off

uint64_t ra8_rar_t::first_off

Offset of the first block past the signature.

Definition at line 148 of file ra8_rar.h.

Referenced by internal_rar_match_signature(), and priv_comic_cbr_open().

◆ read

ra8_rar_read_fn ra8_rar_t::read

Byte reader over the container file.

Definition at line 145 of file ra8_rar.h.

Referenced by internal_copy_name(), internal_rar4_block(), internal_rar5_block(), internal_rar_read_exact(), and ra8_rar_open().

◆ size

uint64_t ra8_rar_t::size

Container length in bytes.

Definition at line 147 of file ra8_rar.h.

Referenced by internal_rar_check_stored(), priv_comic_cbr_open(), ra8_rar_next(), and ra8_rar_open().

◆ version


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