Codec

interface Codec<T>

Encodes and decodes typed messages for a channel.

Functions

Link copied to clipboard
abstract fun decode(payload: ByteArray): T
Link copied to clipboard
abstract fun encode(value: T): ByteArray