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

One multi-call XZ decode session (opaque decoder + liveness flag). More...

#include <unarch_xz.h>

Data Fields

struct xz_dec * dec
 xz-embedded decoder state (pool-allocated).
bool live
 Session is begun and not yet ended.

Detailed Description

One multi-call XZ decode session (opaque decoder + liveness flag).

Bound by unarch_xz_stream_begin over a caller scratch; dec points into that scratch (via the XZ pool) and is owned by the session until unarch_xz_stream_end. Treat the fields as read-only outside this module.

Invariant
dec != NULL exactly while live is true.
At most one session exists at a time (single-client pool).
Example:
ra8_err_t err = unarch_xz_stream_begin(&xs, scratch, sizeof(scratch));
// ... feed via unarch_xz_stream_run ...
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
One multi-call XZ decode session (opaque decoder + liveness flag).
Definition unarch_xz.h:98
void unarch_xz_stream_end(unarch_xz_stream_t *xs)
End a session: free the decoder and release the allocation pool.
Definition unarch_xz.c:212
ra8_err_t unarch_xz_stream_begin(unarch_xz_stream_t *xs, void *scratch, uint32_t scratch_len)
Begin a multi-call XZ decode session over a caller scratch.
Definition unarch_xz.c:96
See also
unarch_xz_stream_begin()
Since
Version 0.1.0

Definition at line 98 of file unarch_xz.h.

Field Documentation

◆ dec

struct xz_dec* unarch_xz_stream_t::dec

xz-embedded decoder state (pool-allocated).

Definition at line 99 of file unarch_xz.h.

Referenced by unarch_xz_stream_begin(), unarch_xz_stream_end(), and unarch_xz_stream_run().

◆ live

bool unarch_xz_stream_t::live

Session is begun and not yet ended.

Definition at line 100 of file unarch_xz.h.

Referenced by unarch_xz_stream_begin(), unarch_xz_stream_end(), and unarch_xz_stream_run().


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