Skip to main content

classify_bytes

Function classify_bytes 

Source
pub fn classify_bytes(
    head: &[u8],
    ext: Option<&str>,
    zip_kind: impl FnOnce() -> Option<FileKind>,
) -> FileKind
Expand description

classify on the first bytes, with the ZIP inspection injected (tests).