Java Integer Array Convert To intsToLong(int off, int... arr)

Here you can find the source of intsToLong(int off, int... arr)

Description

ints To Long

License

Open Source License

Declaration

public static long intsToLong(int off, int... arr) 

Method Source Code

//package com.java2s;

public class Main {
    public static long intsToLong(int off, int... arr) {
        long n = 0;
        for (int i = 0; i < 2; i++) {
            n |= (arr[i + off] & 0xFFFFFFFFL) << 32 * i;
        }/*w w w . ja  va 2s.com*/
        return n;
    }
}

Related

  1. intsToBytes(int[][] ints)
  2. intsToCommaSeparatedString(int[] ints)
  3. intsToHex(int[] val)
  4. intsToIntegers(int... ints)
  5. intsToLong(int highBits, int lowBits)
  6. intsToLongs(int... ints)
  7. intsToUnsignedBytes(int[] sprite)