Relative Content

Tag Archive for gzipzlib

What is avail_out minimum possible value for inflate in zlib z_stream?

I checked the zlib example at https://zlib.net/zpipe.c and I’ve seen that chunk size of 16384 bytes is used. But what is minimal possible chunk size for output inflate data could be used? Can I use for example output buffer with size 1024 or 2048 bytes? And what is the minimal possible returned avail_out after inflate if I use these values?

What is avail_out minimum possible value for deflate in zlib z_stream?

I checked the zlib example at https://zlib.net/zpipe.c and I’ve seen that chunk size of 16384 bytes is used. But what is minimal possible chunk size for output deflate data could be used? Can I use for example output buffer with size 1024 or 2048 bytes? And what is the minimal possible returned avail_out after deflate if I use these values?