Skip to main content

parse_pack

Function parse_pack 

Source
pub fn parse_pack(b: &[u8]) -> Result<(Option<Pack<'_>>, usize)>
Expand description

Parses a single pack from the start of b.

Returns Ok((Some(pack), consumed_bytes)) on success, or Ok((None, 4)) when MPEG_program_end_code 0x000001B9 is reached.