Java Array Range Copy copyOf(final byte[] bytes)

Here you can find the source of copyOf(final byte[] bytes)

Description

copy Of

License

Open Source License

Declaration

public static byte[] copyOf(final byte[] bytes) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] copyOf(final byte[] bytes) {
        final byte[] copy = new byte[bytes.length];
        System.arraycopy(bytes, 0, copy, 0, bytes.length);
        return copy;
    }//from w w w.  ja  v  a 2  s  .  c  o m
}

Related

  1. copyOf(byte[] src, int length)
  2. copyOf(char[] array)
  3. copyOf(char[] source)
  4. copyOf(double[] array, int length)
  5. copyOf(double[] v, int newlength)
  6. copyOf(int[] arr)
  7. copyOf(int[] arr, int length)
  8. copyOf(int[] old, int length)
  9. copyOf(int[] source, int length)