public deflate ( FlushStrategy flush ) : int | ||
flush | FlushStrategy | The |
return | int |
Deflate compresses as much data as possible, and stops when the
The detailed semantics are as follows. deflate performs one or both of the following actions:
Before the call of avail_out == 0
), or after each call of deflate. If deflate returns ZLibResultCode.Z_OK and with zero avail_out, it must be called again after making room in the output buffer because there might be more output pending.
If the parameter flush is set to FlushStrategy.Z_SYNC_FLUSH, all pending output is flushed to the
If flush is set to FlushStrategy.Z_FULL_FLUSH, all output is flushed as with FlushStrategy.Z_SYNC_FLUSH, and the compression state is reset so that decompression can restart from this point if previous compressed data has been damaged or if random access is desired. Using FlushStrategy.Z_FULL_FLUSH too often can seriously degrade the compression.
public deflate ( FlushStrategy flush ) : int | ||
flush | FlushStrategy | The |
return | int |