SuspendingStreamingDecompressor

Suspending streaming decompressor for async-only platforms.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val bufferFactory: BufferFactory

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract suspend fun decompress(input: ReadBuffer): List<ReadBuffer>

Decompresses input data, returning output chunks.

Link copied to clipboard
abstract suspend fun finish(): List<ReadBuffer>

Finishes decompression, returning any remaining data.

Link copied to clipboard
open suspend fun flush(): List<ReadBuffer>

Emits any buffered partial output without finalizing the stream. See StreamingDecompressor.flush for details.

Link copied to clipboard
abstract fun reset()

Resets the decompressor for reuse.

Link copied to clipboard
inline suspend fun <R> SuspendingStreamingDecompressor.use(block: (decompress: suspend (ReadBuffer) -> List<ReadBuffer>) -> R): R

Convenience function that handles decompress, finish, and close automatically.