Here you can find the source of bytesToIntArr(byte[] arr, int offset, int[] num, int soff, int size)
public static int[] bytesToIntArr(byte[] arr, int offset, int[] num, int soff, int size)
//package com.java2s; //License from project: Open Source License public class Main { public static final int INT_SIZE = 4; public static int[] bytesToIntArr(byte[] arr, int offset, int[] num, int soff, int size) { for (int i = 0; i < size; ++i) { int off = offset + (i * INT_SIZE); num[soff + i] = (int) ((arr[off + 0] & 0xFF) << 24) | (int) ((arr[off + 1] & 0xFF) << 16) | (int) ((arr[off + 2] & 0xFF) << 8) | (int) ((arr[off + 3] & 0xFF) << 0); }/*from w w w . jav a2 s . c om*/ return num; } }