Here you can find the source of xorLong(byte[] aBuffer, int aOffset, long aValue)
public static void xorLong(byte[] aBuffer, int aOffset, long aValue)
//package com.java2s; //License from project: Open Source License public class Main { public static void xorLong(byte[] aBuffer, int aOffset, long aValue) { aBuffer[aOffset] ^= (byte) aValue; aBuffer[aOffset + 1] ^= (byte) (aValue >>> 8); aBuffer[aOffset + 2] ^= (byte) (aValue >>> 16); aBuffer[aOffset + 3] ^= (byte) (aValue >>> 24); aBuffer[aOffset + 4] ^= (byte) (aValue >>> 32); aBuffer[aOffset + 5] ^= (byte) (aValue >>> 40); aBuffer[aOffset + 6] ^= (byte) (aValue >>> 48); aBuffer[aOffset + 7] ^= (byte) (aValue >>> 56); }/*from ww w . j a v a2 s.c o m*/ }