Protocol for encoding typed values into payload iodata.
Implementations receive typed values and return iodata for that value's payload. Protocol-specific stream codecs decide when to call this protocol and own stream type prefixes, payload-size fields, buffering, and FIN handling.
Summary
Functions
Encodes a typed value into payload iodata.
Types
@type t() :: term()
All the types that implement this protocol.