private boolean checkMagic(MemBuffer buf, byte[] magicBytes) throws MemoryAccessException {
		for (int i = 0; i < magicBytes.length; i++) {
			if (magicBytes[i] != (buf.getByte(i) & MAGIC_MASK[i])) {
				return false;
			}
		}

		return true;
	}
Byte search mask for magic bytes
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AIFFDataType.java