Here you can find the source of arrayCopy(byte[] in, int inOff, int length, byte[] out, int outOff)
public static void arrayCopy(byte[] in, int inOff, int length, byte[] out, int outOff)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static void arrayCopy(byte[] in, int inOff, int length, byte[] out, int outOff) { for (int i = inOff; i < inOff + length; i++) { out[outOff + i - inOff] = in[i]; }/*from w ww . ja v a2 s . c o m*/ } }