Here you can find the source of decodeInt(ByteBuffer buffer, int start)
public static int decodeInt(ByteBuffer buffer, int start)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static int decodeInt(byte[] value, int start) { return ((value[start] & 0xFF) << 24) + ((value[start + 1] & 0xFF) << 16) + ((value[start + 2] & 0xFF) << 8) + (value[start + 3] & 0xFF); }// w w w . j av a 2 s. c o m public static int decodeInt(ByteBuffer buffer, int start) { return buffer.getInt(start); } }