影子博客

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

//两个byte[]拼接
public byte[] copybyte(byte[] a, byte[] b, byte[] c, byte[] d, byte[] e)///,byte[] f,byte[] g)
{
byte[] h = new byte[a.Length + b.Length + c.Length + d.Length + e.Length];/// + f.Length + g.Length];
a.CopyTo(h, 0);
b.CopyTo(h, a.Length);
c.CopyTo(h, a.Length+b.Length);
d.CopyTo(h, a.Length + b.Length + c.Length);
e.CopyTo(h, a.Length + b.Length + c.Length + d.Length);
//f.CopyTo(h, a.Length + b.Length + c.Length + d.Length+e.Length);
//g.CopyTo(h, a.Length + b.Length + c.Length + d.Length + e.Length+f.Length);
return h;
}

posted on 2016-02-16 16:31  影子博客  阅读(2465)  评论(0编辑  收藏  举报