Function memedb_core::identify_format
source · pub fn identify_format(src: &mut impl Read) -> Result<Option<Format>, Error>
Expand description
Attempts to identify the format of a given src
.
The function operates based on a list of known “magic numbers” that can be found near the beginning of most file formats.
If no known format can be identified, None
will be returned.