Svalinn v0.0.2 Svalinn.Encoding behaviour View Source

Link to this section Summary

Link to this section Callbacks

Link to this callback decode(any) View Source
decode(any()) :: {:ok, binary()} | {:error, :decoding_failed}
Link to this callback encode(binary) View Source
encode(binary()) :: {:ok, any()} | {:error, :encoding_failed}