Identity

object Identity : Encoder

Empty Encoder that doesn't do any changes.

Functions

Link copied to clipboard
open override fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel

Launch coroutine to decode source bytes.

Link copied to clipboard
open override fun encode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel
open override fun encode(source: ByteWriteChannel, coroutineContext: CoroutineContext): ByteWriteChannel

Launch coroutine to encode source bytes.