Decoder

fun interface Decoder<out T>

Decodes typed messages from bytes.

Separated from Encoder so that receive-only streams can require only decoding capability. fun interface enables SAM lambda: Decoder<Int> { buffer -> buffer.readInt() }

Inheritors

Functions

Link copied to clipboard
abstract fun decode(buffer: ReadBuffer): T

Decodes a value from buffer at the current position.