Android Byte Array Copy copy(byte[] rSource)

Here you can find the source of copy(byte[] rSource)

Description

copy

Declaration

static public byte[] copy(byte[] rSource) 

Method Source Code

//package com.java2s;

public class Main {

    static public byte[] copy(byte[] rSource) {
        byte[] aResult = new byte[rSource.length];
        System.arraycopy(rSource, 0, aResult, 0, aResult.length);
        return aResult;
    }/*  w w w .j  a  v a  2  s  . c o m*/

    static public int[] copy(int[] rSource) {
        int[] aResult = new int[rSource.length];
        System.arraycopy(rSource, 0, aResult, 0, aResult.length);
        return aResult;
    }
}

Related

  1. copy(byte[] from)
  2. copy(byte[] source, byte[] target)
  3. copyByteArray(byte[] source)
  4. getCopyByteArray(byte[] src, int start, int length)
  5. getCopyByteArrayArray(byte[] src, int start, int length, int subArrayLength)