Java Array Clone cloneBytes(byte[] buffer)

Here you can find the source of cloneBytes(byte[] buffer)

Description

clone Bytes

License

Open Source License

Declaration

public static byte[] cloneBytes(byte[] buffer) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static byte[] cloneBytes(byte[] buffer) {
        byte[] ret = new byte[buffer.length];
        System.arraycopy(buffer, 0, ret, 0, buffer.length);
        return ret;
    }//ww w  . j a  v  a 2 s.  c  o  m
}

Related

  1. cloneArray(int[] array)
  2. clonearray(int[] clonethis)
  3. cloneArray(int[] src)
  4. cloneArray(String[] orArray, int from)
  5. cloneByteArray(byte[] b)
  6. cloneCharArray(char[] chars)
  7. cloneDoubleMatrix(double[][] src)
  8. cloneIntArray(int array[])
  9. cloneLong(long[] array)