List of utility methods to do ByteBuffer to Int Array
int[] | readIntArray(ByteBuffer in) read Int Array int len = readVInt(in); if (len < 0) return null; int[] array = new int[len]; for (int i = 0; i < len; ++i) { array[i] = readVInt(in); return array; ... |
int[] | readIntegerArray(ByteBuffer bb, int length) read Integer Array int[] a = new int[length]; for (int i = 0; i < length; i++) { a[i] = bb.getInt(); return a; |