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

Per-compile streaming state living in the adapter's stack frame. More...

Collaboration diagram for import_stream_t:

Data Fields

ra8_fs_file_tfile
 Open source .epub (owned until the compile ends).
ra8_vsource_obj_t obj
 The registry's single object slot.
ra8_vsource_t vsrc
 Source registry the cache's loader reads through.
ra8_vmem_stream_t st
 Byte-stream binding handed to the EPUB reader.

Detailed Description

Per-compile streaming state living in the adapter's stack frame.

Bundles the open source file with the single-slot ra8_vsource registry and the byte-stream binding the opened book reads through for the whole compile (the book copies a pointer to st into its stream media, so this struct must out-live the compile call).

Invariant
file != NULL between a successful internal_stream_open and the adapter's close; the other members are only valid alongside it.
Since
Version 0.1.0

Definition at line 43 of file rabook_import_compiler.c.

Field Documentation

◆ file

ra8_fs_file_t* import_stream_t::file

Open source .epub (owned until the compile ends).

Definition at line 44 of file rabook_import_compiler.c.

Referenced by internal_cache_bind(), internal_stream_open(), and rabook_import_compile_adapter().

◆ obj

ra8_vsource_obj_t import_stream_t::obj

The registry's single object slot.

Definition at line 45 of file rabook_import_compiler.c.

Referenced by internal_cache_bind().

◆ st

ra8_vmem_stream_t import_stream_t::st

Byte-stream binding handed to the EPUB reader.

Definition at line 47 of file rabook_import_compiler.c.

Referenced by internal_cache_bind(), and internal_stream_open().

◆ vsrc

ra8_vsource_t import_stream_t::vsrc

Source registry the cache's loader reads through.

Definition at line 46 of file rabook_import_compiler.c.

Referenced by internal_cache_bind().


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