Java Byte Array Value Set setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len)

Here you can find the source of setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len)

Description

set Bytes

License

Open Source License

Declaration

public static void setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len) 

Method Source Code

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

public class Main {

    public static void setBytes(byte[] setTo, int startTo, byte[] setFrom, int startFrom, int len) {
        for (int i = 0; i < len; i++) {
            setTo[startTo + i] = setFrom[startFrom + i];
        }//from   ww  w .  j a va2s . com
    }
}

Related

  1. setByte(byte value, byte[] bytes, int offset)
  2. setByte(byte[] buffer, int index, int val)
  3. setByte(byte[] byteArray, int offset, byte b)
  4. setbytes(byte dest[], int offset, byte src[])
  5. setBytes(byte[] destination, int offset, byte[] source)
  6. setBytes(final byte[] dest, final byte[] data, final int offset, int length)
  7. setBytes(int value, int offset, byte[] bytes)
  8. setBytes(long value, int offset, byte[] bytes)
  9. setBytes(short value, int offset, byte[] bytes)