Function omf::omf1::detect

source ยท
pub fn detect(read: &mut impl Read) -> Result<bool, Error>
Expand description

Returns true if the file looks more like OMF1 than OMF2.

Does not guarantee that the file will load. Returns an error in file read fails.