Compress.flush

Compress and return any remaining data. The returned data should be appended to that returned by compress().

class Compress
void[]
flush
(
int mode = Z_FINISH
)

Parameters

mode int

one of the following:

Z_SYNC_FLUSH
Syncs up flushing to the next byte boundary. Used when more data is to be compressed later on.
Z_FULL_FLUSH
Syncs up flushing to the next byte boundary. Used when more data is to be compressed later on, and the decompressor needs to be restartable at this point.
Z_FINISH
(default) Used when finished compressing the data.

Meta