@Override
	public byte[] complementMask(byte[] msk, byte[] results) throws IncompatibleMaskException {
		if ((msk == null) || (results == null))
			throw new IncompatibleMaskException();
		if ((results.length < mask.length) || (results.length < msk.length))
			throw new IncompatibleMaskException();
		int k = mask.length;
		if (k < msk.length)
			k = msk.length;
		byte b;
		for (int i = 0; i < k; i++) {
			if (i < mask.length)
				b = (byte) (mask[i] ^ 0xff);
			else
				b = (byte) 0xff;
			if (i < msk.length)
				b &= msk[i];
			else
				b = 0;
			results[i] = b;
		}
		return results;
	}
@see ghidra.program.model.lang.Mask#complementMask(byte[], byte[])
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/MaskImpl.java