code: public static long toLong(byte[] b, int off, boolean littleEndian) {
  		if (littleEndian) {
  			return (toInt(b, off, LITTLE_ENDIAN) & 0xFFFFFFFFL) |
  					((toInt(b, off + 4, LITTLE_ENDIAN) & 0xFFFFFFFFL) << 32);
  		}
  		return ((toInt(b, off, BIG_ENDIAN) & 0xFFFFFFFFL) << 32) |
  				(toInt(b, off + 4, BIG_ENDIAN) & 0xFFFFFFFFL);
  	}
docs: Retrieve a <b>long</b> from a byte array in a given byte order