public static boolean checkMagicNumber(BinaryReader reader) throws IOException {
		int type = reader.readNextUnsignedByte();
		type &= 0xfffffffe; // mask off the least significant bit (16/32 bit flag)
		if (type != OmfRecordTypes.THEADR && type != OmfRecordTypes.LHEADR) {
			return false;
		}
		int len = reader.readNextUnsignedShort();
		int stringlen = reader.readNextUnsignedByte();
		return len == stringlen + 2;
	}
Check that the file has the specific OMF magic number
@param reader accesses the bytes of the file
@return true if the magic number matches
@throws IOException for problems reading bytes
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf/OmfFileHeader.java