public static int[] convertByteArrayToIntArray(byte[] data) { int[] result = new int[data.length]; for (int i = 0; i < data.length; i++) { result[i] = data[i] & 0xFF; } return result; }
public static int[] convertByteArrayToIntArray(byte[] data) { int[] result = new int[data.length]; for (int i = 0; i < data.length; i++) { result[i] = data[i] & 0xFF; } return result; }