Current section

Files

Jump to
distribute include distribute@codec_Codec.hrl
Raw

include/distribute@codec_Codec.hrl

-record(codec, {
encoder :: fun((any()) -> {ok, bitstring()} |
{error, distribute@codec:encode_error()}),
decoder :: fun((bitstring()) -> {ok, any()} |
{error, distribute@codec:decode_error()}),
sized_decoder :: fun((bitstring()) -> {ok, {any(), bitstring()}} |
{error, distribute@codec:decode_error()})
}).