How compress data in memory buffer by using libbz2 library in C program

后端 未结 1 1725

I try to compress memory data by using libbz2 library in C program.

Should I use this function of libbz2?:

int BZ2_bzCompress ( bz_stream *strm, in         


        
相关标签:
1条回答
  • 2021-01-16 03:03

    http://www.bzip.org/1.0.3/html/util-fns.html

    Use BZ2_bzBuffToBuffCompress() and BZ2_bzBuffToBuffDecompress() for simple paired compress/decompress.

    This page describes the meaning of the last 3 parms: http://www.bzip.org/1.0.3/html/low-level.html

    0 讨论(0)
提交回复
热议问题