IdentityEncoder

object IdentityEncoder : CompressionEncoder

Implementation of the identity encoder

Functions

Link copied to clipboard
open override fun compress(readChannel: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel

Wraps readChannel into a compressing ByteReadChannel

open override fun compress(writeChannel: ByteWriteChannel, coroutineContext: CoroutineContext): ByteWriteChannel

Wraps writeChannel into a compressing ByteWriteChannel

Link copied to clipboard
open override fun predictCompressedLength(originalLength: Long): Long

May predict compressed length based on the originalLength or return null if it is impossible.