List of utility methods to do Integer Array Convert To
long | intsToLong(int highBits, int lowBits) Takes two int and smooshes them into a long. long newLong = (4294967295L & (long) lowBits) | (long) highBits << 32; return newLong; |
long | intsToLong(int off, int... arr) ints To Long long n = 0; for (int i = 0; i < 2; i++) { n |= (arr[i + off] & 0xFFFFFFFFL) << 32 * i; return n; |
long[] | intsToLongs(int... ints) ints To Longs long g[] = new long[ints.length]; for (int i = 0; i < ints.length; i++) g[i] = ints[i]; return g; |
byte[] | intsToUnsignedBytes(int[] sprite) Convert an array of ints s to an array of byte s which are treated as unsigned. throw new UnsupportedOperationException("Not yet implemented"); |