您的位置:首页 > 其它

两个byte[]数组合并

2016-05-12 14:47 363 查看
//java 合并两个byte数组

public static byte[] byteMerger(byte[] byte_1, byte[] byte_2){

byte[] byte_3 = new byte[byte_1.length+byte_2.length];

System.arraycopy(byte_1, 0, byte_3, 0, byte_1.length);

System.arraycopy(byte_2, 0, byte_3, byte_1.length, byte_2.length);

return byte_3;

}
FROM:http://blog.csdn.net/caiwenfeng_for_23/article/details/44833309
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: