Here you can find the source of putInt(byte[] bb, int x, int index)
public static void putInt(byte[] bb, int x, int index)
//package com.java2s; public class Main { public static void putInt(byte[] bb, int x, int index) { bb[index + 0] = (byte) (x >> 24); bb[index + 1] = (byte) (x >> 16); bb[index + 2] = (byte) (x >> 8); bb[index + 3] = (byte) (x >> 0); }//from w ww. j a v a2 s. c o m }