Java Byte Array Copy memcpy(byte[] dest, int doff, byte[] src, int soff, int len)

Here you can find the source of memcpy(byte[] dest, int doff, byte[] src, int soff, int len)

Description

memcpy

License

Open Source License

Declaration

public final static void memcpy(byte[] dest, int doff, byte[] src,
            int soff, int len) 

Method Source Code

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

Related

  1. copyBytes(long sourceOffset, byte[] source, int sourceOff, int sourceLength, long destOffset, byte[] dest, int destLength)
  2. copyBytesAtOffset(byte[] dst, byte[] src, int offset)
  3. copyBytesIntoByteArray(byte[] dest, byte[] src)
  4. copyBytesToString(byte[] src, int arg1, int arg2)
  5. copyBytesWithin(byte[] bytes, int target, int start, int end)
  6. memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)
  7. memcpy(byte[] dst, int dst_offset, byte[] src, int src_offset, int length)
  8. memcpy(Object to, Object from, int size)