两个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
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
相关文章推荐
- tomcat配置http digest认证
- poj2763 Housewife Wind【树链剖分+线段树】
- 求纱管颜色直方图的matlab 程序
- Linux Mint 17 下安装搜狗拼音输入法
- 随感
- java中的Serializable接口的作用
- [IOS/第三方工具]CocoaPod 安装与卸载[后续完成]
- 接口测试中注意的问题
- 实例讲解 封装继承多态(二)
- Allegro 导入其他板子的OutLine
- 图像拼接
- xhr的send方法以及node如何处理get和post数据
- android一个下拉放大库bug的解决过程及思考
- reids配置参数详解
- ecshop换用redis做缓存
- iOS相册选图实现
- nginx upstream使用及源码解析
- codeforces 672D. Robin Hood(暴力)
- BZOJ3523: [Poi2014]Bricks
- [NSConcreteNotification objectForKey:]: unrecognized selector sent to instan