Here you can find the source of setBytesFromInt(byte[] ret, int value, int offs)
final static void setBytesFromInt(byte[] ret, int value, int offs)
//package com.java2s; public class Main { final static void setBytesFromInt(byte[] ret, int value, int offs) { int v = value; int j = offs; ret[j++] = (byte) ((v >>> 24) & 0xFF); ret[j++] = (byte) ((v >>> 16) & 0xFF); ret[j++] = (byte) ((v >>> 8) & 0xFF); ret[j++] = (byte) ((v >>> 0) & 0xFF); }/*from w ww . jav a 2s . c o m*/ }