Android Array Concatenate concat(byte[] b1, byte[] b2)

Here you can find the source of concat(byte[] b1, byte[] b2)

Description

concat

License

LGPL

Declaration

public static byte[] concat(byte[] b1, byte[] b2) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static byte[] concat(byte[] b1, byte[] b2) {
        byte[] ret = new byte[b1.length + b2.length];
        System.arraycopy(b1, 0, ret, 0, b1.length);
        System.arraycopy(b2, 0, ret, b1.length, b2.length);
        return ret;
    }/*from w w  w  .  ja v a 2 s . co m*/
}

Related

  1. arrayComb(byte[] prep, byte[] after)
  2. concat(T[] a, T[] b)
  3. concatAll(T[] first, T[]... rest)
  4. concatenate(byte[]... bytes)
  5. concat(T[] first, T[] second)
  6. append(byte[] pck1, byte[] pck2)
  7. addBytes(byte[] src1, byte[] src2)