📜  java结合到字节[] - Java代码示例

📅  最后修改于: 2022-03-11 14:52:40.249000             🧑  作者: Mango

代码示例4
byte[] one = getBytesForOne();
byte[] two = getBytesForTwo();
byte[] combined = new byte[one.length + two.length];

System.arraycopy(one,0,combined,0         ,one.length);
System.arraycopy(two,0,combined,one.length,two.length);