I have a byte array. But I want array length mod 4=0. So I want to add 00 after array until pass condition. I find many solutions to append array
byte[] arr_combined = new byte[arr_1.length + arr_2.length];
System.arraycopy(arr_1, 0, arr_combined, 0, arr_1.length);
System.arraycopy(arr_2, 0, arr_combined, arr_1.length, arr_2.length);
But I do not want to create new byte array. I only want append byte after a byte array. Thanks