Reputation: 11
How can I proceed with decoding after getting the status Z_STREAM_END
. If you call inflate ()
after Z_STREAM_END
, then nothing changes.
I need to continue decoding after Z_STREAM_END
. But the fact is that the dictionary is reset after receiving Z_STREAM_END
. As a result, the next packet in deflate format is not decoded, only the first literal is decoded, and then inflate()
returns -3. The dictionary should not be reset after Z_STREAM_END
.
Upvotes: 0
Views: 1089
Reputation: 112642
That means the compressed stream has ended. If for some reason you are expecting another compressed stream right after the one that just ended, then you will need to call inflateInit()
or inflateInit2()
again to restart the decompressor.
Upvotes: 1