class DecompressionSink
source · line 63public class DecompressionSink private constructor(private val stream: SyncCompressionSink) : ByteSink, Closeable
- Supertype
ByteSink - Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
A synchronous decompression sink adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. Call finish for successful completion; close alone does not finish the format.
function close
source · line 107public override fun close(): Unit
- Overrides
close
Releases codec state and closes an endpoint whose ownership was transferred. It does not force incomplete data to finish.
property totals
source · line 84public val totals: CompressionTotals
get: public read-only
The actual input accepted and output delivered so far.
getter get
source · line 84get(): CompressionTotals
constructor constructor
source · line 64constructor(sink: ByteSink, options: DecompressionOptions = DecompressionOptions(), bufferSize: Long = 8192L)
parameter options
source · line 64options: DecompressionOptions = DecompressionOptions()
parameter bufferSize
source · line 65bufferSize: Long = 8192L
parameter sink
source · line 64sink: ByteSink
property failure
source · line 88public val failure: Throwable?
get: public read-only
The retained terminal failure, or None before failure.
getter get
source · line 88get(): Option<Throwable>
function writeFrom
source · line 93public override fun writeFrom(buffer: NativeByteBuffer, count: Long): Long
- Overrides
writeFrom
Consumes up to count readable bytes from the input buffer while passing transformed output downstream.
parameter count
source · line 93count: Long
parameter buffer
source · line 93buffer: NativeByteBuffer
function flush
source · line 97public override fun flush(): Unit
- Overrides
flush
Drains a synchronization point and downstream output without ending input.
function finish
source · line 102public fun finish(): Unit
Completes the stream and drains final output; decoding also validates that input ended at a complete format boundary.