| 
 
	积分186贡献 精华在线时间 小时注册时间2016-7-9最后登录1970-1-1 
 | 
 
 
 楼主|
发表于 2021-2-23 19:20:56
|
显示全部楼层 
| 大家看看这个解压缩方式对不对,目前在试运行,c#8.0+SharpZipLib1.3.1依赖包 #region 解压缩雷达数组
 byte[] CompressDATA = new byte[BlockLen];                 //按照头文件给出的数据字节长度存放雷达压缩数据
 Buffer.BlockCopy(bytes, 256, CompressDATA, 0, BlockLen);
 BZip2InputStream BZipin = new BZip2InputStream(new MemoryStream(CompressDATA));
 MemoryStream re = new MemoryStream(4200 * 6200 * 2);
 int count;
 byte[] data = new byte[4200 * 6200 * 2];                  //存放解压缩数据
 while ((count = BZipin.Read(data, 0, data.Length)) != 0)
 {
 re.Write(data, 0, count);
 }
 //byte[] overarr = re.ToArray();
 #endregion
 | 
 |