Java Array Copy copyArray(byte[] original, int start, int length)

Here you can find the source of copyArray(byte[] original, int start, int length)

Description

copy Array

License

Mozilla Public License

Declaration

private static byte[] copyArray(byte[] original, int start, int length) 

Method Source Code

//package com.java2s;
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

public class Main {
    private static byte[] copyArray(byte[] original, int start, int length) {
        byte[] copy = new byte[length];
        System.arraycopy(original, start, copy, 0, Math.min(original.length - start, length));
        return copy;
    }/*from w  w w  .j av a2 s.c  om*/
}

Related

  1. copy2DArray(char[][] original)
  2. copy5DArray(char[][][][][] original)
  3. copyAndFillOf(T[] original, int newLength, T padding)
  4. copyArray()
  5. copyArray(byte[] dest, int off, byte[] src)
  6. copyArray(byte[] out, byte[] in, int idx)
  7. copyArray(double[] a)
  8. copyArray(double[] array)
  9. copyArray(double[] src, double[] dest, int len)