View Source argo_message_encoder (argo v1.0.6)

Summary

Types

-type t() ::
    #argo_message_encoder{header :: argo_header:t(),
                          blocks :: argo_block_encoders:t(),
                          core :: argo_core_writer:t()}.

Functions

Link to this function

encode_block_boolean(MessageEncoder, Value)

View Source
-spec encode_block_boolean(MessageEncoder, Value) -> MessageEncoder
                        when MessageEncoder :: t(), Value :: boolean().
Link to this function

encode_block_bytes(MessageEncoder, Value)

View Source
-spec encode_block_bytes(MessageEncoder, Value) -> MessageEncoder
                      when MessageEncoder :: t(), Value :: binary().
Link to this function

encode_block_fixed(MessageEncoder, Value)

View Source
-spec encode_block_fixed(MessageEncoder, Value) -> MessageEncoder
                      when MessageEncoder :: t(), Value :: binary().
Link to this function

encode_block_float64(MessageEncoder, Value)

View Source
-spec encode_block_float64(MessageEncoder, Value) -> MessageEncoder
                        when MessageEncoder :: t(), Value :: float().
Link to this function

encode_block_string(MessageEncoder, Value)

View Source
-spec encode_block_string(MessageEncoder, Value) -> MessageEncoder
                       when MessageEncoder :: t(), Value :: unicode:unicode_binary().
Link to this function

encode_block_type(MessageEncoder, BlockValue)

View Source
-spec encode_block_type(MessageEncoder, BlockValue) -> MessageEncoder
                     when MessageEncoder :: t(), BlockValue :: argo_block_value:t().
Link to this function

encode_block_varint(MessageEncoder, Value)

View Source
-spec encode_block_varint(MessageEncoder, Value) -> MessageEncoder
                       when MessageEncoder :: t(), Value :: argo_types:i64().
-spec new(Header) -> MessageEncoder when Header :: argo_header:t(), MessageEncoder :: t().
Link to this function

to_writer(MessageEncoder)

View Source
-spec to_writer(MessageEncoder) -> Writer when MessageEncoder :: t(), Writer :: binary().
Link to this function

write_core_bytes(MessageEncoder, Value)

View Source
-spec write_core_bytes(MessageEncoder, Value) -> MessageEncoder
                    when MessageEncoder :: t(), Value :: binary().
Link to this function

write_core_float64(MessageEncoder, Value)

View Source
-spec write_core_float64(MessageEncoder, Value) -> MessageEncoder
                      when MessageEncoder :: t(), Value :: float().
Link to this function

write_core_label(MessageEncoder, Label)

View Source
-spec write_core_label(MessageEncoder, Label) -> MessageEncoder
                    when MessageEncoder :: t(), Label :: argo_types:i64().
Link to this function

write_core_labeled_type(MessageEncoder, LabeledType)

View Source
-spec write_core_labeled_type(MessageEncoder, LabeledType) -> MessageEncoder
                           when MessageEncoder :: t(), LabeledType :: argo_core:labeled_type().
Link to this function

write_core_length(MessageEncoder, Length)

View Source
-spec write_core_length(MessageEncoder, Length) -> MessageEncoder
                     when MessageEncoder :: t(), Length :: argo_types:length().
Link to this function

write_core_nullable_type(MessageEncoder, NullableType, IsLabeled)

View Source
-spec write_core_nullable_type(MessageEncoder, NullableType, IsLabeled) -> MessageEncoder
                            when
                                MessageEncoder :: t(),
                                NullableType :: argo_core:nullable_type(),
                                IsLabeled :: boolean().
Link to this function

write_core_omittable_type(MessageEncoder, OmittableType, IsLabeled)

View Source
-spec write_core_omittable_type(MessageEncoder, OmittableType, IsLabeled) -> MessageEncoder
                             when
                                 MessageEncoder :: t(),
                                 OmittableType :: argo_core:omittable_type(),
                                 IsLabeled :: boolean().
Link to this function

write_core_string(MessageEncoder, Value)

View Source
-spec write_core_string(MessageEncoder, Value) -> MessageEncoder
                     when MessageEncoder :: t(), Value :: unicode:unicode_binary().
Link to this function

write_core_varint(MessageEncoder, Value)

View Source
-spec write_core_varint(MessageEncoder, Value) -> MessageEncoder
                     when MessageEncoder :: t(), Value :: argo_types:i64().