Function tree_magic::from_vec_u8
[−]
[src]
pub fn from_vec_u8(bytes: Vec<u8>) -> Option<String>
Gets the type of a file from a vector of bytes.
Returns mime as string wrapped in Some if a type matches, or None if no match is found. Because this starts from the type graph root, it is a bug if this returns None.