Skip to main content

decode_header

Function decode_header 

Source
pub fn decode_header(
    data: &[u8],
) -> IsccResult<(MainType, SubType, Version, u32, Vec<u8>)>
Expand description

Decode ISCC header from bytes.

Operates directly on &[u8] with bitwise extraction, avoiding any intermediate Vec<bool> allocation. Returns (MainType, SubType, Version, length, tail_bytes) where tail_bytes contains any remaining data after the header.