public static byte[] arrayAdd(byte[] array1, byte[] array2, int i) {
byte[] array = new byte[array1.length + i];
System.arraycopy(array1, 0, array, 0, array1.length);
System.arraycopy(array2, 0, array, array1.length, i);
return array;
}
全站熱搜
public static byte[] arrayAdd(byte[] array1, byte[] array2, int i) {
byte[] array = new byte[array1.length + i];
System.arraycopy(array1, 0, array, 0, array1.length);
System.arraycopy(array2, 0, array, array1.length, i);
return array;
}