CompressionError with ErrorCode.CLOSED if called after
finish.
CompressionErrorwithErrorCode.INVALID_INPUTif the
output sink has not been set.
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.
mode | Flush mode hint (currently ignored). |
CompressionError with ErrorCode.CLOSED if called after
finish.
CompressionError with ErrorCode.INVALID_INPUT if theoutput sink has not been set.