Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header(bytes: &[u8]) -> Result<Header, HeaderError>
Expand description

Parse a 12-byte header. The size is judged here, before the caller allocates for the body.