Here you can find the source of memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)
public static void memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)
//package com.java2s; //License from project: LGPL public class Main { public static void memcpy(byte[] destBytes, byte[] srcBytes, int numBytes) { for (int i = 0; i < numBytes; i++) { destBytes[i] = srcBytes[i];/*from ww w. j ava 2 s . co m*/ } } }