Here you can find the source of intsToLong(int off, int... arr)
public static long intsToLong(int off, int... arr)
//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; } }