Here you can find the source of setbytes(byte dest[], int offset, byte src[])
public static final byte[] setbytes(byte dest[], int offset, byte src[])
//package com.java2s; public class Main { public static final byte[] setbytes(byte dest[], int offset, byte src[]) { System.arraycopy(src, 0, dest, offset, src.length); return dest; }//from ww w . j a v a 2s . c o m public static final byte[] setbytes(byte dest[], int offset, byte src[], int len) { System.arraycopy(src, 0, dest, offset, len); return dest; } }