Lz4Compressor.flush

void flush(FlushMode mode = FlushMode.SYNC)

Flush any buffered output according to the specified mode.

For the current simple implementation, flush only enforces life-cycle rules and does not emit partial blocks; all buffered data is emitted when finish is called.

Parameters

modeFlush mode hint (currently ignored).

Throws

- CompressionError with ErrorCode.CLOSED if called after

finish.

  • CompressionError with ErrorCode.INVALID_INPUT if the

output sink has not been set.