使用 LZMA 解压缩内存流

Decompression of memorystreams using LZMA

我有一个远程管理工具,是 64 位平台的必要更改。我使用 Zlib 来压缩和解压缩内存流,但在进行此更改后,Zlib classes showed several errors when I tried compile my project in 64 bits plattform,因为 Zlib 仅适用于 32 位平台。

然后,我在互联网上搜索了一些类似的 class 用于对内存流进行压缩和解压缩,我发现 其中讨论的是 LZMA class 也可以像我需要的那样制作,类似于 Zlib class。

我理解了建议:

The big issue that you will face is that the library you have chosen to use requires you to know how large the file is that you are decompressing.

所以,我来这里就是想知道一些尝试解决这个问题的建议。

换句话说,我想知道如何解压缩我项目的服务器端接收到的内存流的大小?

欢迎在这里提出任何意见或建议。

好的,看来您正在使用 ZLibEX,作者:Borland 的 Roberto Della Pasqua:

你是对的 - 组装部分 MoveI32 不可移植。

但是...

您应该能够在 System.Zlib 的当前 Delphi XE-5 中使用 相同的 API: