1000  
查询码: 00000404
java 合并两个byte数组
作者: 系统管理员 于 2015年11月11日 发布在分类 / 技术研发 / 开源组件 ,于 2017年10月22日 编辑
length byte_3 byte_2 byte_1 arraycopy system system.arraycopy byte_1.length publicstaticbyte byte_2.length

    //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;  
        }  
0人参与


 历史版本

备注 修改日期 修改人
CREAT 2017-10-22 12:20:22[当前版本] 系统管理员

wcp知识库系统-京ICP备15024440号-1 -V 5.1.9 -wcp