Skip to main content

detect

Function detect 

Source
pub fn detect(name: &str, head: &[u8]) -> Option<&'static CadFormat>
Expand description

Classifies a file by its name and the first HEAD_LEN bytes of its content (pass &[] if the content is not at hand).