Function infer::is_archive [−][src]
pub fn is_archive(buf: &[u8]) -> bool
Expand description
Determines whether a buffer is an archive type.
Examples
use std::fs; assert!(infer::is_archive(&fs::read("testdata/sample.pdf").unwrap()));