summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-08-17 16:20:57 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-08-17 17:11:11 -0700
commit22fc20898be541409008a06b784a12ab00b8b770 (patch)
treefa72048ab5129a1f2064d9acbb7f93479af529ee
parent5f52b25059e0b2c61ccda7fd05f5fa86f8005716 (diff)
downloadzlib-22fc20898be541409008a06b784a12ab00b8b770.tar.gz
zlib-22fc20898be541409008a06b784a12ab00b8b770.tar.bz2
zlib-22fc20898be541409008a06b784a12ab00b8b770.zip
Clarify requirement in zlib.h to avoid multiple flush markers.
-rw-r--r--zlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zlib.h b/zlib.h
index 929eb0f..13d8357 100644
--- a/zlib.h
+++ b/zlib.h
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
320 with the same value of the flush parameter and more output space (updated 320 with the same value of the flush parameter and more output space (updated
321 avail_out), until the flush is complete (deflate returns with non-zero 321 avail_out), until the flush is complete (deflate returns with non-zero
322 avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that 322 avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
323 avail_out is greater than six to avoid repeated flush markers due to 323 avail_out is greater than six when the flush marker begins, in order to avoid
324 avail_out == 0 on return. 324 repeated flush markers upon calling deflate() again when avail_out == 0.
325 325
326 If the parameter flush is set to Z_FINISH, pending input is processed, 326 If the parameter flush is set to Z_FINISH, pending input is processed,
327 pending output is flushed and deflate returns with Z_STREAM_END if there was 327 pending output is flushed and deflate returns with Z_STREAM_END if there was