Skip to main content

Module decode

Module decode 

Source
Expand description

src/headers/decode.rs

Header decoding utilities.

Design notes:

  • Deserializes a fixed 80‑byte buffer into a HeaderV1 struct.
  • Field order must match encode.rs exactly for ABI stability.
  • Validation is performed after decoding to reject malformed or incompatible streams.
  • Treat header as authoritative source for strategy and chunk sizing.

Functions§

decode_header_le
Deserialize an 80‑byte little‑endian header into HeaderV1.