zlib的兼容COM pression流? [英] Zlib-compatible compression streams?

查看:117
本文介绍了zlib的兼容COM pression流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是System.IO.Com pression.GZipStream或System.IO.Com pression.Deflate与zlib的兼容COM pression?

Are System.IO.Compression.GZipStream or System.IO.Compression.Deflate compatible with zlib compression?

推荐答案

从的 MSDN了解 System.IO.Com pression.GZipStream:

From MSDN about System.IO.Compression.GZipStream:

本类重presents gzip的数据格式,它采用无损文件COM pression和DECOM pression一个行业标准的算法。

This class represents the gzip data format, which uses an industry standard algorithm for lossless file compression and decompression.

zlib的常见问题解答

在zlib的广州的*函数,另一方面使用gzip格式。

The gz* functions in zlib on the other hand use the gzip format.

所以的zlib和GZipStream应该互操作,但前提是你使用zlib的功能处理的gzip格式。

So zlib and GZipStream should be interoperable, but only if you use the zlib functions for handling the gzip-format.

System.IO.Com pression.Deflate和zlib据说是不互通的。

System.IO.Compression.Deflate and zlib are reportedly not interoperable.

如果你需要处理的压缩文件(你可能不这样做,但别人可能需要这个)你需要使用的SharpZipLib 或其他第三方库。

If you need to handle zip files (you probably don't, but someone else might need this) you need to use SharpZipLib or another third-party library.

这篇关于zlib的兼容COM pression流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆