@Override
	public void write(byte[] b, int off, int len) throws IOException {
		byte[] tmpBuffer = new byte[len];
		for (int i = 0; i < len; i++) {
			long byteIndex = currentPosition + i;
			int xorMaskIndex =
				(int) (byteIndex % ObfuscatedFileByteProvider.XOR_MASK_BYTES.length);
			byte xorMask = ObfuscatedFileByteProvider.XOR_MASK_BYTES[xorMaskIndex];
			tmpBuffer[i] = (byte) (b[i + off] ^ xorMask);
		}
		delegate.write(tmpBuffer, 0, tmpBuffer.length);
		currentPosition += len;
	}
Creates instance.

@param delegate {@link OutputStream} to wrap
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/ObfuscatedOutputStream.java