Here you can find the source of copyBytes(byte[] src, byte[] target)
Parameter | Description |
---|---|
src | first array |
target | second array |
public static void copyBytes(byte[] src, byte[] target)
//package com.java2s; /*/*from www .j a v a 2s . c om*/ * $Id$ * * Copyright (c) 2008-2014 David Muller <roxon@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ public class Main { /** * Copies the contents of src into target. * * @param src first array * @param target second array */ public static void copyBytes(byte[] src, byte[] target) { System.arraycopy(src, 0, target, 0, src.length); } }