pub fn sniff(file: &[u8]) -> Result<Filetype>