Android Bit Set xorArray(byte[] array, byte[] mask)

Here you can find the source of xorArray(byte[] array, byte[] mask)

Description

xor Array

Declaration

public static void xorArray(byte[] array, byte[] mask) 

Method Source Code

//package com.java2s;

public class Main {
    public static void xorArray(byte[] array, byte[] mask) {
        final int len = Math.min(array.length, mask.length);
        for (int i = 0; i < len; ++i) {
            array[i] ^= mask[i];/*  www.  j  a v a 2s . c  om*/
        }
    }
}

Related

  1. setBit(byte[] arr, int bit)
  2. setBit(byte[] bytes, int bitNr, int bit)
  3. reverseBits(byte[] bits)
  4. bitwiseNot(int number)
  5. xor(byte[]... arrays)