Skip to content
Andrew Lambert edited this page Nov 26, 2022 · 15 revisions

zlib.ZStream.Flush

Method Signature

 Private Sub Flush() Implements Writeable.Flush
 Sub Flush(Flushing As Integer)

Remarks

Flushes the compression stream according to the Flushing parameter. If called on the Writeable interface then Z_SYNC_FLUSH is used as the Flushing parameter.

The Flushing parameter may be one of the following:

Name Comment
Z_NO_FLUSH Allows zlib to decide how much data to accumulate before producing output.
Z_SYNC_FLUSH All pending output is flushed to the output stream and the output is aligned on a byte boundary.
Z_PARTIAL_FLUSH All pending output is flushed to the output stream but the output is not aligned to a byte boundary.
Z_BLOCK A deflate block is completed and written to the output stream but the output is not aligned on a byte boundary.
Z_FULL_FLUSH Like Z_SYNC_FLUSH, and the compression state is reset so that decompression can restart from this point with ZStream.Sync.
Z_FINISH Processing is finished and all remaining output is written to the output stream. Equivalent to calling ZStream.Close.

See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally