pub fn parse_header(bytes: &[u8]) -> Option<PackHeader>Expand description
Parse and validate the fixed header from the first pack bytes
(any slice covering at least HEADER_BYTES, e.g. the first sector).
None on wrong magic or version.
pub fn parse_header(bytes: &[u8]) -> Option<PackHeader>Parse and validate the fixed header from the first pack bytes
(any slice covering at least HEADER_BYTES, e.g. the first sector).
None on wrong magic or version.