Encoder

interface Encoder<in T>

Writes T to a WriteBuffer.

Inheritors

Functions

Link copied to clipboard
abstract fun encode(buffer: WriteBuffer, value: T, context: EncodeContext)
Link copied to clipboard
open fun wireSize(value: T, context: EncodeContext): WireSize

Reports the on-wire byte size. Defaults to WireSize.BackPatch.