Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header(buf: &[u8]) -> Option<(Header, usize)>
Expand description

Parse a header from the start of buf; returns the header plus the WordCount offset (always HDR_LEN). None on bad magic/size.