Skip to main content

sniff

Function sniff 

Source
pub fn sniff(bytes: &[u8]) -> Option<Format>
Expand description

Guess the format from the first bytes. Zip containers are not resolved here (see crate::extract), because that requires opening the archive.