IStorage 的 VCL 替代方案

发布于 2024-07-06 20:04:13 字数 448 浏览 7 评论 0原文

作为前言,我使用 Borland C++ 和 VCL。

我需要某种结构化存储对象,它可以作为单个文件保存到磁盘,并且可以包含多个命名的二进制数据 blob,我可以通过编程方式枚举、访问和操作这些二进制数据。

IStorage 界面似乎与我的界面很接近想要,但我更喜欢 VCL 风格的解决方案,因为将 TStream (VCL) 转换为 IStream 等变得很尴尬,而且它们必须是使用现有可用的 VCL 内容的更简单的解决方案,例如 TIniFile 但用于二进制数据。

我不想使用 XML,因为二进制数据 blob 非常大,并且在正确编码以在 XML 中使用时,它是完全无效的。

预先感谢所有建议。

To preface I am using Borland C++ and the VCL.

I need some sort of structured storage object which can be saved to disk as a single file and can contain multiple named blobs of binary data which I can programatically enumerate, access and manipulate.

The IStorage interface seems to be close what I want but I would prefer a VCL style solution as converting TStream's (VCL) to IStream's among other things gets awkward and their must be a simpler solution using the VCL stuff allready available, like a TIniFile but for binary data.

I don't want to use XML as the binary data blobs are very large and when correctly encoded for use in XML it's completely inneficient.

Thanks in advance for all suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

水中月 2024-07-13 20:04:13

zip 文件实际上是一个标准容器,似乎您可以获得它们的 TStream 接口: http://www.tek-tips.com/faqs.cfm?fid=6734

A zip file is de facto a standard container, and it seems you can get a TStream interface to them: http://www.tek-tips.com/faqs.cfm?fid=6734

世界和平 2024-07-13 20:04:13

Eldos 的 SolFS(固体文件系统)。

http://www.eldos.com/solfs/

非常可靠,但可能不是最便宜的解决方案(一名开发人员 372 美元)。

SolFS (Solid File System) from Eldos.

http://www.eldos.com/solfs/

Very reliable, but might not be the cheapest solution ($372 for one developer).

葬シ愛 2024-07-13 20:04:13

我选择了 ComponentAce 的 ZipForge。 它速度很快,正在积极开发/支持,并且具有完美的界面来支持我想要的东西。

谢谢大家的其他建议。

I went for ZipForge by ComponentAce. It's fast, is being actively developed/supported and has the perfect interface to support what I want.

Thanks for everybodys other suggestions.

套路撩心 2024-07-13 20:04:13

如果您不想存储大文件(有2GB限制),GPStructuredStorage可能会很方便。

它是一个用纯delphi编写的开源结构化存储库,仍在维护并且似乎可以与D2010一起使用。

If you don't want to store huge file(it has 2GB limit), GPStructuredStorage might be handy.

It's a open source structured storage library written in pure delphi, still maintained and seems to be worked with D2010.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文