Android Array Concatenate addBytes(byte[] src1, byte[] src2)

Here you can find the source of addBytes(byte[] src1, byte[] src2)

Description

add Bytes

Declaration

public static byte[] addBytes(byte[] src1, byte[] src2) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] addBytes(byte[] src1, byte[] src2) {
        byte[] dest = new byte[src1.length + src2.length];
        System.arraycopy(src1, 0, dest, 0, src1.length);
        System.arraycopy(src2, 0, dest, src1.length, src2.length);
        return dest;
    }/*from   w w  w . ja  v  a2s .com*/
}

Related

  1. concatAll(T[] first, T[]... rest)
  2. concatenate(byte[]... bytes)
  3. concat(T[] first, T[] second)
  4. concat(byte[] b1, byte[] b2)
  5. append(byte[] pck1, byte[] pck2)