Here you can find the source of copyArrays(byte[] dest, byte[] source, int fromIdx)
copyArrays
method here.
Parameter | Description |
---|---|
dest | a <code>byte[]</code> value |
source | a <code>byte[]</code> value |
fromIdx | an <code>int</code> value |
public static void copyArrays(byte[] dest, byte[] source, int fromIdx)
//package com.java2s; /*/*from ww w . j a va2s . c o m*/ * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2003-2008, Open Source Geospatial Foundation (OSGeo) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ public class Main { /** * Describe <code>copyArrays</code> method here. * * @param dest a <code>byte[]</code> value * @param source a <code>byte[]</code> value * @param fromIdx an <code>int</code> value */ public static void copyArrays(byte[] dest, byte[] source, int fromIdx) { for (int i = 0; i < dest.length; i++) { dest[i] = source[i + fromIdx]; } } }