CompressionError with CompressionErrorCode.CLOSED if called after
finish.
CompressionErrorwithCompressionErrorCode.INVALID_INPUTif the output sink has not been set.
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.
mode | Flush mode hint. |
CompressionError with CompressionErrorCode.CLOSED if called after
finish.
CompressionError with CompressionErrorCode.INVALID_INPUT if the output sink has not been set.