Here you can find the source of setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len)
public static void setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len)
//package com.java2s; //License from project: Open Source License public class Main { public static void setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len) { for (int i = 0; i < len; i++) { setTo[startTo + i] = setFrom[startFrom + i]; }//from ww w . j a va2s . com } }