loqui v0.4.5 Loqui.Protocol.Codec behaviour View Source

A Codec behaviour

Codecs turn terms into IOdata and IOdata into terms.

Link to this section Summary

Callbacks

Decodes the IOdata into a term

Turns the given term into IOdata

The name of the codec used in the negotiation phase of the loqui protocol

Link to this section Types

Link to this section Callbacks

Link to this callback decode(iodata) View Source
decode(iodata()) :: term()

Decodes the IOdata into a term

Turns the given term into IOdata

The name of the codec used in the negotiation phase of the loqui protocol