Android Array Copy copy(int[] rSource)

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

Description

copy

Declaration

static public int[] copy(int[] 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;
    }//from w w  w  .  jav  a  2  s  .  co 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. copyOf(int[] obj, int newSize)
  2. copyOf(int[][] obj)
  3. copyOf(long[] obj)
  4. copyOf(long[] obj, int newSize)
  5. copyOfRange(final byte[] source, final int from, final int to)
  6. copy(float[] src, Buffer dst, int numFloats, int offset)
  7. appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs)
  8. arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length)
  9. arraycopy(byte[] from, byte[] to)