CompressCallback

Compress Callback

Describes the type interface for a callback function passed to methods which compress data, like zlib.deflate.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun done(result: ByteBuffer)

Invoke the callback with a successful result.

Link copied to clipboard
open fun failed(error: RuntimeException)

Invoke the callback with a failure result.

Link copied to clipboard
abstract operator fun invoke(error: RuntimeException?, result: ByteBuffer?)

Invoke the compression operation callback, with an error or result instance.