DeflateEncoder

object DeflateEncoder : CompressionEncoder

Implementation of the deflate encoder

Functions

compress

fun compress(
    readChannel: ByteReadChannel,
    coroutineContext: <ERROR CLASS>
): ByteReadChannel

Wraps readChannel into a compressing ByteReadChannel

fun compress(
    writeChannel: ByteWriteChannel,
    coroutineContext: <ERROR CLASS>
): ByteWriteChannel

Wraps writeChannel into a compressing ByteWriteChannel