class DeflateMessageDecoder
source · line 51public
public class DeflateMessageDecoder public constructor(
windowBits: Int = 15, contextTakeover: Boolean = true, maxOutputBytes: Long? = None
) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
An RFC 7692 message decoder with explicit boundaries, window size, context takeover, and optional output limit.
function process
source · line 68public
public fun process(input: NativeByteBuffer, output: NativeByteBuffer, count: Long = input.readableBytes): CompressionStep
Processes at most count readable input bytes into the writable output region, advancing both cursors.
parameter count
source · line 68public
count: Long = input.readableBytes
parameter output
source · line 68public
output: NativeByteBuffer
parameter input
source · line 68public
input: NativeByteBuffer
property totals
source · line 58public
public val totals: CompressionTotals
get: public read-only
The actual cumulative byte counts accepted and produced by this codec.
getter get
source · line 58public
get(): CompressionTotals
function nextMessage
source · line 78public
public fun nextMessage(): Unit
Starts the next message after the previous one finished, retaining or resetting history according to context takeover.
property failure
source · line 62public
public val failure: Throwable?
get: public read-only
The recorded terminal failure, or None before failure.
getter get
source · line 62public
get(): Option<Throwable>
constructor constructor
source · line 51public
constructor(windowBits: Int = 15, contextTakeover: Boolean = true, maxOutputBytes: Long? = None)
parameter maxOutputBytes
source · line 52public
maxOutputBytes: Long? = None
parameter windowBits
source · line 52public
windowBits: Int = 15
parameter contextTakeover
source · line 52public
contextTakeover: Boolean = true
function finishMessage
source · line 73public
public fun finishMessage(output: NativeByteBuffer): CompressionStep
Ends the current message and drains its remaining output; repeat until Finished.
parameter output
source · line 73public
output: NativeByteBuffer
function close
source · line 82public
public override fun close(): Unit
- Overrides
close
Releases native codec state. Closing does not finish incomplete stream or message data.