class CompressionDecoder
source · line 51public
public class CompressionDecoder public constructor(options: DecompressionOptions = DecompressionOptions()) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
A stateful incremental decoder for one explicitly selected format. It validates framing and configured limits while advancing caller-owned buffers.
property format
source · line 56public
public val format: CompressionFormat
get: public read-only
The explicitly selected compressed wire format.
getter get
source · line 56public
get(): CompressionFormat
function close
source · line 75public
public override fun close(): Unit
- Overrides
close
Releases native codec state. Closing does not finish incomplete stream or message data.
property totals
source · line 60public
public val totals: CompressionTotals
get: public read-only
The actual cumulative byte counts accepted and produced by this codec.
getter get
source · line 60public
get(): CompressionTotals
property failure
source · line 64public
public val failure: Throwable?
get: public read-only
The recorded terminal failure, or None before failure.
getter get
source · line 64public
get(): Option<Throwable>
constructor constructor
source · line 51public
constructor(options: DecompressionOptions = DecompressionOptions())
parameter options
source · line 51public
options: DecompressionOptions = DecompressionOptions()
function process
source · line 70public
public fun process(input: NativeByteBuffer, output: NativeByteBuffer, count: Long = input.readableBytes, endInput: Boolean = false): CompressionStep
Consumes at most count bytes and produces decoded output. Set endInput when no further input will arrive so truncation can be diagnosed.
parameter output
source · line 70public
output: NativeByteBuffer
parameter input
source · line 70public
input: NativeByteBuffer
parameter endInput
source · line 71public
endInput: Boolean = false
parameter count
source · line 70public
count: Long = input.readableBytes