Lz4Compressor.flush

void flush(FlushMode mode = FlushMode.SYNC)

Flush buffered input as one or more complete frame blocks.

FlushMode.NONE is a no-op. Other modes force emission of the currently buffered partial block, allowing downstream decoders to consume progress before finish is called.

Parameters

modeFlush mode hint.

Throws

- CompressionError with CompressionErrorCode.CLOSED if called after

finish.

  • CompressionError with CompressionErrorCode.INVALID_INPUT if the output sink has not been set.