Java Byte Array Copy copyByteArray(byte[] source)

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

Description

copy Byte Array

License

Open Source License

Declaration

public static byte[] copyByteArray(byte[] source) 

Method Source Code

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

public class Main {
    public static byte[] copyByteArray(byte[] source) {
        byte[] buf = new byte[source.length];
        System.arraycopy(source, 0, buf, 0, buf.length);
        return buf;
    }/*from   w ww . j a  v a2  s .  c o  m*/
}

Related

  1. copyByte(byte[] ASource, int nFrom, int nEnd)
  2. copyByteArray(byte[] array2Copy)
  3. copyByteArray(final byte[] src, byte[] dest, int length)
  4. copyBytes(byte[] arr, int length)
  5. copyBytes(byte[] dst, int dstPos, int value)
  6. copyBytes(byte[] dstBytes, int dstFrom, byte[] srcBytes, int srcFrom, int len)