Here you can find the source of getLong4(byte[] b, int offset)
public static long getLong4(byte[] b, int offset)
//package com.java2s; public class Main { public static long getLong4(byte[] b, int offset) { long ret = (b[offset] & 0xffL) << 24; ret += ((b[offset + 1] & 0xffL) << 16); ret += ((b[offset + 2] & 0xffL) << 8); ret += (b[offset + 3] & 0xffL); return ret; }/*from w w w . j av a2 s . c om*/ }