Here you can find the source of concat(byte[] a, byte[] b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
public static byte[] concat(byte[] a, byte[] b)
//package com.java2s; public class Main { /**//from w ww .j a va 2 s . com * Join two bytearrays * * @param a * @param b * @return */ public static byte[] concat(byte[] a, byte[] b) { byte[] result = new byte[a.length + b.length]; System.arraycopy(a, 0, result, 0, a.length); System.arraycopy(b, 0, result, a.length, b.length); return result; } }