List of utility methods to do Bitwise And
Byte | bitAnd(Byte a, Byte b) bit And if (a == null || b == null) { return 0; return (byte) (a & b); |
byte[] | bitAnd(byte[] a, byte[] b) bit And byte[] result = new byte[a.length]; for (int i = 0; i < result.length; i++) { result[i] = (byte) (a[i] & b[i]); return result; |
int | bitwiseAnd(int arg0, int arg1) bitwise And return arg0 & arg1;
|
byte[] | bitwiseAndByteArrays(byte[] arr0, byte[] arr1) bitwise And Byte Arrays byte[] returnArray = new byte[arr0.length]; for (int i = 0; i < arr0.length; i++) { returnArray[i] = (byte) (arr0[i] & arr1[i]); return returnArray; |