本文介绍了如何COM preSS在内存缓冲区中的数据通过C程序使用libbz2库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试COM preSS内存中的数据通过C程序使用libbz2库。
I try to compress memory data by using libbz2 library in C program.
我应该使用libbz2的这个功能?:
Should I use this function of libbz2?:
int BZ2_bzCompress ( bz_stream *strm, int action );
谁能告诉我一个例子?
Can anyone show me an example?
感谢您。
推荐答案
使用 BZ2_bzBuffToBuffCom $ P $(PSS)
和 BZ2_bzBuffToBuffDecom $ P $(PSS)
进行简单的配对COM preSS / DECOM preSS。
Use BZ2_bzBuffToBuffCompress()
and BZ2_bzBuffToBuffDecompress()
for simple paired compress/decompress.
本页面描述了最后3 PARMS的含义:
This page describes the meaning of the last 3 parms:http://www.bzip.org/1.0.3/html/low-level.html
这篇关于如何COM preSS在内存缓冲区中的数据通过C程序使用libbz2库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!