guess_format_id

Function guess_format_id 

Source
pub fn guess_format_id(
    data: Option<&[u8]>,
    filename_or_ext: Option<&str>,
    expected_category: Option<FormatCategory>,
) -> Option<FormatId>
Expand description

Detects FormatId using magic byte signatures, extension matching, and category filtering.