Android Byte Array Concatenate copyBytesIntoByteArray(byte[] dest, byte[] src)

Here you can find the source of copyBytesIntoByteArray(byte[] dest, byte[] src)

Description

copy Bytes Into Byte Array

License

Open Source License

Declaration

public static void copyBytesIntoByteArray(byte[] dest, byte[] src) 

Method Source Code

//package com.java2s;

public class Main {
    public static void copyBytesIntoByteArray(byte[] dest, byte[] src) {
        copyBytesIntoByteArrayAtOffset(dest, src, 0);
    }/*from  ww w .  j  a va  2  s  .c o m*/

    public static void copyBytesIntoByteArrayAtOffset(byte[] dest,
            byte[] src, int offset) {
        for (int i = 0; i < src.length; i++) {
            dest[offset + i] = src[i];
        }
    }
}

Related

  1. concat(byte[] a, byte[] b)
  2. concat(byte[] base, byte... extension)
  3. concat(int[] base, int... extension)
  4. concatByteArray(byte[] a, byte[] b)
  5. copyBytesIntoByteArrayAtOffset(byte[] dest, byte[] src, int offset)
  6. copyBytesIntoByteArrayUpToLength(byte[] dest, byte[] src, int offset)