Android Array Copy arrayCopy(byte[] src, int srcPos, byte[] dest, int destPos, int length)

Here you can find the source of arrayCopy(byte[] src, int srcPos, byte[] dest, int destPos, int length)

Description

array Copy

Declaration

public static void arrayCopy(byte[] src, int srcPos, byte[] dest,
            int destPos, int length) 

Method Source Code

//package com.java2s;

public class Main {
    public static void arrayCopy(byte[] src, int srcPos, byte[] dest,
            int destPos, int length) {
        if (length - destPos > src.length - srcPos)
            return;

        for (int i = destPos, j = srcPos; i < destPos + length; i++, j++) {
            dest[i] = src[j];/*  w w w .  j a v a2 s. c o  m*/
        }
    }
}

Related

  1. copy(int[] rSource)
  2. copy(float[] src, Buffer dst, int numFloats, int offset)
  3. appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs)
  4. arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length)
  5. arraycopy(byte[] from, byte[] to)
  6. copyOf(byte[] bytes)
  7. copyOfRange(byte[] bytes, int offset, int len)
  8. copyOfRange(byte[] original, int from, int to)
  9. createCopy(boolean[] array, int dataSize, int newLength)