Skip to main content

decode_frame_header

Function decode_frame_header 

Source
pub fn decode_frame_header(
    buf: &[u8],
    expected_salt: u32,
) -> Option<FrameHeader>
Expand description

Decode and validate a frame from buf. Returns None if the CRC does not validate, if the salt does not match expected_salt, or if reserved bytes are non-zero.

Caller-side: None means “tail” — recovery stops here.