Android Utililty Methods Byte Array to Boolean Array Convert

List of utility methods to do Byte Array to Boolean Array Convert

Description

The list of methods to do Byte Array to Boolean Array Convert are organized into topic(s).

Method

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;