[][src]Function x3::decoder::read_frame_header

pub fn read_frame_header(
    bytes: &mut ByteReader
) -> Result<(usize, usize), X3Error>

Parse the frame header and return the payload. The Frame header and payload contain CRCs, theses will be checked and errors returned if the CRC does not match.

Arguments

  • br - the data to decode as a BitReader.