Skip to main content

decode_cadu

Function decode_cadu 

Source
pub fn decode_cadu<'a>(
    asm: &[u8],
    cadu: &'a [u8],
) -> Result<&'a [u8], CaduError>
Expand description

Strips the ASM from a CADU and returns the frame payload.

Verifies that the leading bytes match the expected asm pattern.