Skip to main content

decode_header

Function decode_header 

Source
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.