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

Loop-carried state of the windowed DEFLATE inflation. More...

Collaboration diagram for gz_inflate_t:

Data Fields

gz_src_tsrc
 Byte source (cursor at the window end).
uint8_t * out
 Destination arena.
size_t out_cap
 Arena capacity.
size_t total
 Payload bytes produced so far.
uint32_t crc
 Running CRC32 of the produced payload.
ra8_decomp_budget_t budget
 Unified decompression budget.
uint8_t win [k_gz_in_chunk]
 Input window.
size_t win_len
 Valid bytes in the window.
size_t win_ofs
 Consumed bytes in the window.
bool done
 tinfl reported stream end.

Detailed Description

Loop-carried state of the windowed DEFLATE inflation.

The input window is refilled from the source cursor; win_ofs marks the consumed part. total / crc accumulate the produced payload for the trailer check.

Invariant
win_ofs <= win_len <= sizeof(win).
See also
unarch_gzip_unwrap()
Since
Version 0.1.0

Definition at line 279 of file unarch_gzip.c.

Field Documentation

◆ budget

ra8_decomp_budget_t gz_inflate_t::budget

Unified decompression budget.

Definition at line 285 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and unarch_gzip_unwrap().

◆ crc

uint32_t gz_inflate_t::crc

Running CRC32 of the produced payload.

Definition at line 284 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), internal_verify_trailer(), and unarch_gzip_unwrap().

◆ done

bool gz_inflate_t::done

tinfl reported stream end.

Definition at line 289 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and unarch_gzip_unwrap().

◆ out

uint8_t* gz_inflate_t::out

Destination arena.

Definition at line 281 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and unarch_gzip_unwrap().

◆ out_cap

size_t gz_inflate_t::out_cap

Arena capacity.

Definition at line 282 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and unarch_gzip_unwrap().

◆ src

gz_src_t* gz_inflate_t::src

Byte source (cursor at the window end).

Definition at line 280 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), internal_verify_trailer(), and unarch_gzip_unwrap().

◆ total

size_t gz_inflate_t::total

Payload bytes produced so far.

Definition at line 283 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), internal_verify_trailer(), and unarch_gzip_unwrap().

◆ win

uint8_t gz_inflate_t::win[k_gz_in_chunk]

Input window.

Definition at line 286 of file unarch_gzip.c.

Referenced by internal_inflate_pass().

◆ win_len

size_t gz_inflate_t::win_len

Valid bytes in the window.

Definition at line 287 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and internal_verify_trailer().

◆ win_ofs

size_t gz_inflate_t::win_ofs

Consumed bytes in the window.

Definition at line 288 of file unarch_gzip.c.

Referenced by internal_inflate_pass(), and internal_verify_trailer().


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