Android Array Concatenate cancat(byte[] a, byte[] b)

Here you can find the source of cancat(byte[] a, byte[] b)

Description

cancat

Declaration

public static byte[] cancat(byte[] a, byte[] b) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] cancat(byte[] a, byte[] b) {
        int alen = a.length;
        int blen = b.length;
        byte[] result = new byte[alen + blen];
        System.arraycopy(a, 0, result, 0, alen);
        System.arraycopy(b, 0, result, alen, blen);
        return result;
    }/*  ww  w. j a va 2s . c o  m*/
}

Related

  1. concat(T[] first, T[]... rest)
  2. concat(byte[] first, byte[]... rest)
  3. arrayApend(byte[] prep, byte after)
  4. arrayComb(byte[] prep, byte[] after)
  5. concat(T[] a, T[] b)
  6. concatAll(T[] first, T[]... rest)