问题标签 [sevenzipsharp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 如何使用 SevenZip C# 解压缩内存流
我正在使用下面的代码使用 SevenZip 压缩流,它会产生一个输出,我将其写回文件系统。
但是当我尝试解压缩输出文件时,使用下面的代码会引发错误
System.OverflowException: '数组尺寸超出了支持的范围。
在线coder.SetDecoderProperties(properties);
。
我无法找出不正确的地方SetDecoderProperties
?
c# - C# 中的 LZMA 压缩选项
我需要在 Python 中为 LZMA 获取这些选项:
进入 C#。
到目前为止,我得到了这个:
但是,如果我用两种语言压缩相同的输入,我会得到不同的输出字节:
Python:
C#
我正在为 C# 使用 7Zip LZMA SDK NuGet 包。我认为这是因为有些属性设置不同。我应该在C#中更改 LZMA 压缩器的哪些属性以获得与 Python 中相同的输出?