Android Utililty Methods Byte Array Clone

List of utility methods to do Byte Array Clone

Description

The list of methods to do Byte Array Clone are organized into topic(s).

Method

byte[]clone(byte[] array)
clone
if (array == null) {
    return null;
byte[] result = new byte[array.length];
System.arraycopy(array, 0, result, 0, array.length);
return result;
byte[]cloneByteArray(byte[] b)
Create a new byte array and copy all the data.
if (b == null) {
    return null;
int len = b.length;
if (len == 0) {
    return b;
byte[] copy = new byte[len];
...