Skip to main content

is_compactpro

Function is_compactpro 

Source
pub fn is_compactpro(bytes: &[u8]) -> bool
Expand description

True iff bytes is a Compact Pro archive. Mirrors XADMaster’s recognizer: the leading 0x01 marker is far too weak on its own, so we walk the index at the end of the file and confirm the stored CRC-32 over the directory.