Skip to main content

decode_header

Function decode_header 

Source
pub fn decode_header(
    header: &[u8; 4],
    capacity: usize,
) -> Result<usize, FramingError>
Available on crate feature embedded only.
Expand description

Decode a big-endian length prefix, validating the frame it announces fits a receiver buffer of capacity bytes.