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
http://www.bzip.org/1.0.3/html/util-fns.html
Use BZ2_bzBuffToBuffCompress() and BZ2_bzBuffToBuffDecompress() for simple paired compress/decompress.
BZ2_bzBuffToBuffCompress()
BZ2_bzBuffToBuffDecompress()
This page describes the meaning of the last 3 parms: http://www.bzip.org/1.0.3/html/low-level.html