Skip to main content

decode_frames

Function decode_frames 

Source
pub fn decode_frames<C: FrameCodec>(
    bytes: &[u8],
) -> Result<(Vec<C::Record>, usize)>
Expand description

Decode framed records from an in-memory buffer, returning the records and the byte length of the valid (fully-written) prefix. A torn trailing frame ends the scan.