Re: Zlib compression issues



dean.cleancode@xxxxxxxxx wrote:

I'm having issues with zlib's deflate and inflate functions...
Generally, my code using these functions works well. However, in some
small cases, either deflate or inflate chops off the last byte of the
file.

For instance, creating a file with the character range of 0-255 like
this:
perl -e 'for ($i=0; $i < 255; $i++) { print "%c", $i; }' > ascii

Here it's your program, that chops the last byte (255).

DoDi
.