|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Test-access surface for the EPUB filesystem stream callback. More...
Go to the source code of this file.
Functions | |
| size_t | priv_epub_fs_stream_read (void *ctx, uint64_t offset, void *buf, size_t len) |
| Read one bounded span from a live streamed-filesystem context. | |
Test-access surface for the EPUB filesystem stream callback.
Not part of the public API. Focused host tests include this header to drive defensive callback guards on the production source under MC/DC.
Definition in file epub_fs_internal.h.
| size_t priv_epub_fs_stream_read | ( | void * | ctx, |
| uint64_t | offset, | ||
| void * | buf, | ||
| size_t | len ) |
Read one bounded span from a live streamed-filesystem context.
Test-access form of the callback bound by epub_open_streamed_fs. It seeks the open ra8_fs file to offset and reads at most len bytes. Production callers keep using the public facade.
| [in,out] | ctx | Bound epub_stream_fs_ctx_t descriptor. |
| [in] | offset | Absolute file offset. |
| [out] | buf | Destination for up to len bytes. |
| [in] | len | Requested byte count. |
| 0 | An argument guard or filesystem operation rejected the request. |
| len | The full request was read. |
| <len | A short read reached the end of the file. |
ctx points to a live epub_stream_fs_ctx_t. buf is writable for len bytes. len bytes are written to buf. References RA8_PRIV.