diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:43 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:43 -0700 |
commit | 6b8233bfe00e79134cb1b84fc49d4f750a797f79 (patch) | |
tree | ca2b03b0169568681dc3d9c823e9f0bc4417d6b5 /examples/zlib_how.html | |
parent | 0484693e1723bbab791c56f95597bd7dbe867d03 (diff) | |
download | zlib-1.2.2.3.tar.gz zlib-1.2.2.3.tar.bz2 zlib-1.2.2.3.zip |
zlib 1.2.2.3v1.2.2.3
Diffstat (limited to '')
-rw-r--r-- | examples/zlib_how.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/zlib_how.html b/examples/zlib_how.html index b2bda6b..40998db 100644 --- a/examples/zlib_how.html +++ b/examples/zlib_how.html | |||
@@ -420,10 +420,11 @@ The output of <tt>inflate()</tt> is handled identically to that of <tt>deflate() | |||
420 | } | 420 | } |
421 | </b></pre> | 421 | </b></pre> |
422 | The inner <tt>do</tt>-loop ends when <tt>inflate()</tt> has no more output as indicated | 422 | The inner <tt>do</tt>-loop ends when <tt>inflate()</tt> has no more output as indicated |
423 | by not filling the output buffer, just as for <tt>deflate()</tt>. | 423 | by not filling the output buffer, just as for <tt>deflate()</tt>. In this case, we cannot |
424 | assert that <tt>strm.avail_in</tt> will be zero, since the deflate stream may end before the file | ||
425 | does. | ||
424 | <pre><b> | 426 | <pre><b> |
425 | } while (strm.avail_out == 0); | 427 | } while (strm.avail_out == 0); |
426 | assert(strm.avail_in == 0); /* all input will be used */ | ||
427 | </b></pre><!-- --> | 428 | </b></pre><!-- --> |
428 | The outer <tt>do</tt>-loop ends when <tt>inflate()</tt> reports that it has reached the | 429 | The outer <tt>do</tt>-loop ends when <tt>inflate()</tt> reports that it has reached the |
429 | end of the input <em>zlib</em> stream, has completed the decompression and integrity | 430 | end of the input <em>zlib</em> stream, has completed the decompression and integrity |