pub fn decode_header(
artifact: &str,
expected_family: FormatFamily,
bytes: &[u8],
) -> Result<FileHeader, FormatError>Expand description
Parses only the fixed 32-byte header and validates its registry declaration.
pub fn decode_header(
artifact: &str,
expected_family: FormatFamily,
bytes: &[u8],
) -> Result<FileHeader, FormatError>Parses only the fixed 32-byte header and validates its registry declaration.