C ++的压缩库 [英] Compression Libraries For C++
问题描述
我正在阅读关于程序中的压缩,我开始创建一个新的简单项目,一个拉链(只是一个拉链,而不是解压缩),但我只找到了zLib,它是C.我知道C库可以在C ++中使用,但我喜欢使用C ++库。有没有人知道一个好的建议?
I was reading about compression in programs and I started to create a new simple project, a zipper (just a zipper, not an unzipper), but I only found zLib, and it's for C. I know that C libraries can be used in C++, but I like to use C++ libraries. Does anyone know a good one to suggest?
最好的问候。
推荐答案
p>我知道的大多数压缩库都是用C编写的,有两个原因:一,良好压缩算法的一般时代;和两个平台之间C的高可移植性(和稳定性)。
Most compression libraries that I know of are written in C for two reasons: one, the general age of good compression algorithms; and two, the high portability (and stability) of C across platforms.
我建议任何以下。如果你想要好的许可选择前两个之一,否则如果你开放使用GPL代码选择最后两个之一。
I suggest any of the following. If you want good licenses select one of the top two, otherwise if you're open to using GPL code pick one of the last two.
- Bzip2
- Zlib
- LZO
- UCL
这篇关于C ++的压缩库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!