Skip to main content

parse_frag_header

Function parse_frag_header 

Source
pub fn parse_frag_header(payload: &[u8]) -> Option<FragmentHeader>
Expand description

Parses the FragmentHeader from the start of a frame payload. Returns None if the payload is shorter than FRAG_HEADER_SIZE.