Here you can find the source of memcpy(byte[] dest, int doff, byte[] src, int soff, int len)
public final static void memcpy(byte[] dest, int doff, byte[] src, int soff, int len)
//package com.java2s; public class Main { public final static void memcpy(byte[] dest, int doff, byte[] src, int soff, int len) { for (int i = 0; i < len; i++) { dest[doff + i] = src[soff + i]; }//from w ww . j a v a2 s . c o m } }