后端开发|C#.Net教程
C#,二进制,SubByte
后端开发-C#.Net教程
C#二进制字节数组操作函数 截取字节数组SubByte
娱乐 网站源码,Vscode的红下线,ubuntu查看hpool,安装tomcat实验内容,sqlite3字符出现次数,设计爬虫,php txt换行符,芜湖seo推广哪家好,月子会所 网站源码,opencart模板开发手册lzw
/// /// 要截取的字节数组 /// 开始截取位置的索引 /// 要截取的字节长度 /// 截取后的字节数组 public byte[] SubByte(byte[] srcBytes, int startIndex, int length) { System.IO.MemoryStream bufferStream = new System.IO.MemoryStream(); byte[] returnByte = new byte[] { }; if (srcBytes == null) { return returnByte; } if (startIndex < 0) { startIndex = 0; } if (startIndex < srcBytes.Length) {if (length srcBytes.Length - startIndex) { length = srcBytes.Length - startIndex; }bufferStream.Write(srcBytes, startIndex, length);returnByte = bufferStream.ToArray();bufferStream.SetLength(0);bufferStream.Position = 0; } bufferStream.Close(); bufferStream.Dispose(); return returnByte; } }
微分类信息源码,ubuntu安装有道,tomcat 宕机原因有哪些,爬虫谐音成语,php权限菜单,类聚seo优化工具怎么样lzw