Skip to main content

inspect_file_header

Function inspect_file_header 

Source
pub fn inspect_file_header(input: &[u8]) -> Result<FileHeader, DecodeError>
Expand description

Parses a standalone JBIG2 file header without decoding its segments.

On failure, no successful metadata is fabricated. Embedded streams do not contain this header and must not be passed to this function.

ยงErrors

Returns DecodeError::Malformed if the signature, reserved flags, or required page-count field is invalid or truncated.