File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,11 +87,18 @@ \section{\module{zlib} ---
8787for later processing.
8888\end {methoddesc }
8989
90- \begin {methoddesc }[Compress]{flush}{}
91- All pending input is processed, and an string containing the remaining
92- compressed output is returned. After calling \method {flush()}, the
90+ \begin {methoddesc }[Compress]{flush}{\optional {mode}}
91+ All pending input is processed, and a string containing the remaining
92+ compressed output is returned. \var {mode} can be selected from the
93+ constants \constant {Z_SYNC_FLUSH}, \constant {Z_FULL_FLUSH}, or
94+ \constant {Z_FINISH}, defaulting to \constant {Z_FINISH}. \constant {Z_SYNC_FLUSH} and
95+ \constant {Z_FULL_FLUSH} allow compressing further strings of data and
96+ are used to allow partial error recovery on decompression, while
97+ \constant {Z_FINISH} finishes the compressed stream and
98+ prevents compressing any more data. After calling
99+ \method {flush()} with \var {mode} set to \constant {Z_FINISH}, the
93100\method {compress()} method cannot be called again; the only realistic
94- action is to delete the object.
101+ action is to delete the object.
95102\end {methoddesc }
96103
97104Decompression objects support the following methods:
You can’t perform that action at this time.
0 commit comments