View Source argo_value_encoder (argo v1.0.4)

Summary

Types

-type t() ::
    #argo_value_encoder{message :: argo_message_encoder:t(),
                        wire_type :: undefined | argo_types:option(argo_wire_type:t())}.

Functions

Link to this function

encode_value(ValueEncoder, Value)

View Source
-spec encode_value(ValueEncoder, Value) -> ValueEncoder
                when ValueEncoder :: t(), Value :: argo_value:t().
Link to this function

encode_value(ValueEncoder, Value, OptionWireType)

View Source
-spec encode_value(ValueEncoder, Value, OptionWireType) -> ValueEncoder
                when
                    ValueEncoder :: t(),
                    Value :: argo_value:t(),
                    OptionWireType :: argo_types:option(argo_wire_type:t()).
-spec format_error(dynamic(), dynamic()) -> dynamic().
-spec new(Header) -> ValueEncoder when Header :: argo_header:t(), ValueEncoder :: t().
-spec to_writer(ValueEncoder) -> Writer when ValueEncoder :: t(), Writer :: binary().