Function tree_magic::match_u8 [] [src]

pub fn match_u8(mimetype: &str, bytes: &[u8], len: u32) -> bool

Checks if the given bytestream matches the given MIME type.

Returns true or false if it matches or not. If the given mime type is not known, the function will always return false.