View Source argo_value_decoder (argo v1.0.10)

Summary

Types

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

Functions

Link to this function

decode_wire_type(ValueDecoder, WireType)

View Source
-spec decode_wire_type(ValueDecoder, WireType) -> {ValueDecoder, Value}
                    when
                        ValueDecoder :: t(),
                        WireType :: argo_wire_type:t(),
                        Value :: argo_value:t().
Link to this function

decode_wire_type(ValueDecoder, WireType, OptionWireType)

View Source
-spec decode_wire_type(ValueDecoder, WireType, OptionWireType) -> {ValueDecoder, Value}
                    when
                        ValueDecoder :: t(),
                        WireType :: argo_wire_type:t(),
                        OptionWireType :: argo_types:option(argo_wire_type:t()),
                        Value :: argo_value:t().
-spec format_error(dynamic(), dynamic()) -> dynamic().
-spec from_reader(Reader) -> {Reader, ValueDecoder} when Reader :: binary(), ValueDecoder :: t().
-spec new(MessageDecoder) -> ValueDecoder
       when MessageDecoder :: argo_message_decoder:t(), ValueDecoder :: t().