pub fn decode<'o>(
raw: &[u8],
format: Format,
out: &'o mut [u8],
) -> Result<Option<(Frame<'o>, usize)>>Expand description
Decode a frame from raw (starting at the L field), checking every CRC. The data
without CRCs is copied into out, which must hold at least L + 1 bytes.
Returns Ok(None) when raw is shorter than the frame its L field announces.