Skip to main content

parse_packet

Function parse_packet 

Source
pub fn parse_packet(
    data: &[u8],
    self_delimited: bool,
) -> Result<(u8, Vec<(usize, usize)>, usize), &'static str>
Expand description

Split data into its frames. Returns (toc, frame byte-ranges, packet_offset). self_delimited parses the trailing length prefix used by multistream.