Android Byte Array Clone clone(byte[] array)

Here you can find the source of clone(byte[] array)

Description

clone

Declaration

public static byte[] clone(byte[] array) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] clone(byte[] array) {
        if (array == null) {
            return null;
        }//from  w w  w  . ja  va 2  s.  c o m
        byte[] result = new byte[array.length];
        System.arraycopy(array, 0, result, 0, array.length);
        return result;
    }
}

Related

  1. cloneByteArray(byte[] b)