supportsStatefulFlush

actual val supportsStatefulFlush: Boolean = true

Whether the sync StreamingCompressor maintains compression state across flush() calls.

When true, calling StreamingCompressor.flush produces output that can be immediately decompressed, and the compressor can continue accepting more data for the same compression context.

When false, flush() produces independent compressed blocks and clears internal state.

  • JVM, Android, Apple: true - true zlib z_stream maintains state

  • JS (Node.js): false - sync API uses batch compression, state cleared after flush

  • JS (Browser): false - CompressionStream doesn't support flush

Note: On JS Node.js, the async SuspendingStreamingCompressor DOES support stateful flush using the Transform stream API, even though this flag is false.

actual val supportsStatefulFlush: Boolean = false

Whether the sync StreamingCompressor maintains dictionary across flush() calls.

JS Node.js: false - sync API uses batch compression, flush clears state. JS Browser: false - CompressionStream API doesn't support flush.

Note: The async SuspendingStreamingCompressor DOES support stateful flush on Node.js using the Transform stream API.

actual val supportsStatefulFlush: Boolean = true