pub fn parse_header(bytes: &[u8]) -> Result<CommonHeader, WireError>Expand description
Parse and validate the common header.
Everything is checked before the caller allocates the body, so a peer cannot choose the
size of a buffer and length - HEADER_LEN cannot underflow.