System.IO.Compression.GZipStream或System.IO.Compression.Deflate与zlib压缩兼容吗?
我正在使用zlib.NET库来尝试和扩充由zlib压缩的文件(也许在Linux机器上).这是我正在做的事情:
zlib.ZInputStream zinput =
new zlib.ZInputStream(File.Open(path, FileMode.Open, FileAccess.Read));
while (stopByte != (data = zinput.ReadByte()))
{
// check data here
}
zinput.Close();
Run Code Online (Sandbox Code Playgroud)
数据字节与压缩数据字节匹配,因此我必须做错事.