pub fn decode_header_le(buf: &[u8]) -> Result<HeaderV1, HeaderError>Expand description
Deserialize an 80‑byte little‑endian header into HeaderV1.
§Returns
Ok(HeaderV1)if decoding and validation succeed.Err(HeaderError)if buffer length mismatches or validation fails.
§Notes
- Field order must match the struct layout in
encode.rs. - Uses helper functions for compact little‑endian reads.
- Debug assertion ensures exactly 80 bytes are consumed.