blackmagic01021 -2 Light Poster

I am trying to use the zlib based compression for buffer compression. In this case, I am using compress2 function.

compression_success=compress2((Bytef*)compressed_buffer, &compressed_size,(const Bytef*)package_data.pData, (uLongf)orig_size, 1);

And for decompression I am using uncompress function.

uncompress_success=uncompress((Bytef*)destination, &UnCompSize, (const Bytef*)package_data.pData, package_data.cbData);

The problem is that the system tend to be very slow. I have heard that the other functionalities of the zlib compression library like inflate and deflate can be very useful.

Please let me know if there is any ideas for it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.