Java xor xor32(byte[] a, short aOffset, byte[] b, short bOffset, byte[] result, short offset)

Here you can find the source of xor32(byte[] a, short aOffset, byte[] b, short bOffset, byte[] result, short offset)

Description

xor

License

BSD License

Declaration

public static void xor32(byte[] a, short aOffset, byte[] b,
            short bOffset, byte[] result, short offset) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

public class Main {
    public static void xor32(byte[] a, short aOffset, byte[] b,
            short bOffset, byte[] result, short offset) {
        result[offset] = (byte) (a[aOffset] ^ b[bOffset]);
        result[(short) (offset + 1)] = (byte) (a[(short) (aOffset + 1)] ^ b[(short) (bOffset + 1)]);
        result[(short) (offset + 2)] = (byte) (a[(short) (aOffset + 2)] ^ b[(short) (bOffset + 2)]);
        result[(short) (offset + 3)] = (byte) (a[(short) (aOffset + 3)] ^ b[(short) (bOffset + 3)]);
    }/*from w  w w .  j  ava2s .c om*/
}

Related

  1. xor(int[][] array, int[][] array2)
  2. xor(long x, long y)
  3. xor(short b1, short b2)
  4. xor(String key, String input)
  5. xor(T l1, T l2)
  6. xorFolding(final long hash, final int shift)
  7. xorInPlace(byte[] source, int sourceOffset, byte[] destination, int destinationOffset, int size)
  8. xorInt64OverBytesLE(long val, byte[] data, int ofs)
  9. XORInto(byte[] dest, byte[] src)