Java Byte Array Copy copyBytesWithin(byte[] bytes, int target, int start, int end)

Here you can find the source of copyBytesWithin(byte[] bytes, int target, int start, int end)

Description

copy Bytes Within

License

Open Source License

Declaration

static void copyBytesWithin(byte[] bytes, int target, int start, int end) 

Method Source Code

//package com.java2s;
/* Copyright 2015 Google Inc. All Rights Reserved.
    /*from www . jav a  2s. c o m*/
   Distributed under MIT license.
   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

public class Main {
    static void copyBytesWithin(byte[] bytes, int target, int start, int end) {
        System.arraycopy(bytes, start, bytes, target, end - start);
    }
}

Related

  1. copyBytes(int[] srcArray, int srcPos, byte[] destBytes)
  2. copyBytes(long sourceOffset, byte[] source, int sourceOff, int sourceLength, long destOffset, byte[] dest, int destLength)
  3. copyBytesAtOffset(byte[] dst, byte[] src, int offset)
  4. copyBytesIntoByteArray(byte[] dest, byte[] src)
  5. copyBytesToString(byte[] src, int arg1, int arg2)
  6. memcpy(byte[] dest, int doff, byte[] src, int soff, int len)
  7. memcpy(byte[] destBytes, byte[] srcBytes, int numBytes)
  8. memcpy(byte[] dst, int dst_offset, byte[] src, int src_offset, int length)
  9. memcpy(Object to, Object from, int size)