flush

open fun flush(onOutput: (ReadBuffer) -> Unit)

Emits any buffered partial output without finalizing the stream.

Use this instead of finish when maintaining decompressor state across multiple logical messages (e.g., WebSocket context takeover). Unlike finish, this does not signal end-of-stream and allows continued decompression via decompress.

Parameters

onOutput

Called with any buffered decompressed data.