Java tutorial
//package com.java2s; public class Main { public static byte[] subBytes(byte[] paramArrayOfByte, int paramInt1, int paramInt2) { byte[] arrayOfByte = new byte[paramInt2]; System.arraycopy(paramArrayOfByte, paramInt1, arrayOfByte, 0, paramInt2); return arrayOfByte; } }