[][src]Function pcap_rs::parse_header

pub fn parse_header(i: &[u8]) -> IResult<&[u8], Header, (&[u8], ErrorKind)>

Parses a header.

This is always the first item of the file. This amongst other information extracts the endianness and whether the time is expressed in micro or nano-second from the magic number™ .