View Source argo_message_decoder (argo v1.0.3)

Summary

Types

-type t() :: #argo_message_decoder{}.

Functions

Link to this function

decode_block_boolean(MessageDecoder)

View Source
-spec decode_block_boolean(MessageDecoder) -> {MessageDecoder, Value}
                        when MessageDecoder :: t(), Value :: boolean().
Link to this function

decode_block_bytes(MessageDecoder)

View Source
-spec decode_block_bytes(MessageDecoder) -> {MessageDecoder, Value}
                      when MessageDecoder :: t(), Value :: binary().
Link to this function

decode_block_fixed(MessageDecoder, Length)

View Source
-spec decode_block_fixed(MessageDecoder, Length) -> {MessageDecoder, Value}
                      when MessageDecoder :: t(), Length :: argo_types:length(), Value :: binary().
Link to this function

decode_block_float64(MessageDecoder)

View Source
-spec decode_block_float64(MessageDecoder) -> {MessageDecoder, Value}
                        when MessageDecoder :: t(), Value :: float().
Link to this function

decode_block_scalar(MessageDecoder, BlockWireType)

View Source
-spec decode_block_scalar(MessageDecoder, BlockWireType) -> {MessageDecoder, Value}
                       when
                           MessageDecoder :: t(),
                           BlockWireType :: argo_block_wire_type:t(),
                           Value :: argo_scalar_value:t().
Link to this function

decode_block_string(MessageDecoder)

View Source
-spec decode_block_string(MessageDecoder) -> {MessageDecoder, Value}
                       when MessageDecoder :: t(), Value :: unicode:unicode_binary().
Link to this function

decode_block_varint(MessageDecoder)

View Source
-spec decode_block_varint(MessageDecoder) -> {MessageDecoder, Value}
                       when MessageDecoder :: t(), Value :: argo_types:i64().
-spec format_error(dynamic(), dynamic()) -> dynamic().
-spec from_reader(Reader) -> {Reader, MessageDecoder} when Reader :: binary(), MessageDecoder :: t().
Link to this function

new(Header, Blocks, Core)

View Source
-spec new(Header, Blocks, Core) -> MessageDecoder
       when
           Header :: argo_header:t(),
           Blocks :: argo_block_decoders:t(),
           Core :: argo_core_reader:t(),
           MessageDecoder :: t().
Link to this function

read_core_bytes(MessageDecoder, Length)

View Source
-spec read_core_bytes(MessageDecoder, Length) -> {MessageDecoder, Value}
                   when MessageDecoder :: t(), Length :: argo_types:length(), Value :: binary().
Link to this function

read_core_float64(MessageDecoder)

View Source
-spec read_core_float64(MessageDecoder) -> {MessageDecoder, Value}
                     when MessageDecoder :: t(), Value :: float().
Link to this function

read_core_label(MessageDecoder)

View Source
-spec read_core_label(MessageDecoder) -> {MessageDecoder, Label}
                   when MessageDecoder :: t(), Label :: argo_types:i64().
Link to this function

read_core_labeled_type(MessageDecoder)

View Source
-spec read_core_labeled_type(MessageDecoder) -> {MessageDecoder, LabeledType}
                          when MessageDecoder :: t(), LabeledType :: argo_core:labeled_type().
Link to this function

read_core_length(MessageDecoder)

View Source
-spec read_core_length(MessageDecoder) -> {MessageDecoder, Length}
                    when MessageDecoder :: t(), Length :: argo_types:length().
Link to this function

read_core_nullable_type(MessageDecoder, IsLabeled)

View Source
-spec read_core_nullable_type(MessageDecoder, IsLabeled) -> {MessageDecoder, NullableType}
                           when
                               MessageDecoder :: t(),
                               IsLabeled :: boolean(),
                               NullableType :: argo_core:nullable_type().
Link to this function

read_core_omittable_type(MessageDecoder, IsLabeled)

View Source
-spec read_core_omittable_type(MessageDecoder, IsLabeled) -> {MessageDecoder, OmittableType}
                            when
                                MessageDecoder :: t(),
                                IsLabeled :: boolean(),
                                OmittableType :: argo_core:omittable_type().
Link to this function

read_core_string(MessageDecoder, Length)

View Source
-spec read_core_string(MessageDecoder, Length) -> {MessageDecoder, Value}
                    when
                        MessageDecoder :: t(),
                        Length :: argo_types:length(),
                        Value :: unicode:unicode_binary().
Link to this function

read_core_varint(MessageDecoder)

View Source
-spec read_core_varint(MessageDecoder) -> {MessageDecoder, Value}
                    when MessageDecoder :: t(), Value :: argo_types:i64().