Compress.flush

void[] flush(int mode = Z_FINISH)

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

Parameters

modeone of the following: <dl> <dt>Z_SYNC_FLUSH </dt> <dd>Syncs up flushing to the next byte boundary. Used when more data is to be compressed later on.</dd> <dt>Z_FULL_FLUSH </dt> <dd>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.</dd> <dt>Z_FINISH</dt> <dd>(default) Used when finished compressing the data. </dd> </dl>