Java Utililty Methods Integer Array Convert To

List of utility methods to do Integer Array Convert To

Description

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

Method

longintsToLong(int highBits, int lowBits)
Takes two int and smooshes them into a long.
long newLong = (4294967295L & (long) lowBits) | (long) highBits << 32;
return newLong;
longintsToLong(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");