Java Byte Array Copy memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)

Here you can find the source of memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)

Description

memcpy

License

LGPL

Declaration

public static void memcpy(byte[] destBytes, byte[] srcBytes, int numBytes) 

Method Source Code

//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*/
        }
    }
}

Related

  1. copyBytesAtOffset(byte[] dst, byte[] src, int offset)
  2. copyBytesIntoByteArray(byte[] dest, byte[] src)
  3. copyBytesToString(byte[] src, int arg1, int arg2)
  4. copyBytesWithin(byte[] bytes, int target, int start, int end)
  5. memcpy(byte[] dest, int doff, byte[] src, int soff, int len)
  6. memcpy(byte[] dst, int dst_offset, byte[] src, int src_offset, int length)
  7. memcpy(Object to, Object from, int size)