Skip to main content

parse_file_header

Function parse_file_header 

Source
pub fn parse_file_header(buf: &[u8]) -> Result<FileHeader, IcechunkFormatError>
Expand description

Parse a file header from the first ICECHUNK_FILE_HEADER_LEN bytes of any metadata file.

Discovers (does not assert) the file type, so it works for every metadata file kind. Tolerant about the impl-name string content.