List of utility methods to do Byte Array to Boolean Array Convert
boolean[] | getBooleans(byte[] bytes, int length) get Booleans boolean[] booleans = new boolean[length]; for (int i = 0; i < length; i++) { final int word = i >>> 3; booleans[i] = (bytes[word] & (1 << (i & 7))) != 0; return booleans; |