两个byte[]拼接
生活随笔
收集整理的這篇文章主要介紹了
两个byte[]拼接
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
兩個byte[]拼接
//兩個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;
}
轉載于:https://www.cnblogs.com/VictorBlog/p/5193125.html
總結
以上是生活随笔為你收集整理的两个byte[]拼接的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 美国sec是什么意思
- 下一篇: 什么是高送转股票