View Source argo_core_writer (argo v1.0.3)

Summary

Types

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

Functions

-spec format_error(dynamic(), dynamic()) -> dynamic().
-spec new(Core) -> CoreWriter when Core :: binary(), CoreWriter :: t().
Link to this function

to_writer(CoreWriter, InlineEverything)

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

write_bytes(CoreWriter, Bytes)

View Source
-spec write_bytes(CoreWriter, Bytes) -> CoreWriter when CoreWriter :: t(), Bytes :: binary().
Link to this function

write_float64(CoreWriter, Float64)

View Source
-spec write_float64(CoreWriter, Float64) -> CoreWriter when CoreWriter :: t(), Float64 :: float().
Link to this function

write_label(CoreWriter, Label)

View Source
-spec write_label(CoreWriter, Label) -> CoreWriter when CoreWriter :: t(), Label :: argo_types:label().
Link to this function

write_labeled_type(CoreWriter, LabeledType)

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

write_length(CoreWriter, Length)

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

write_nullable_type(CoreWriter, NullableType, IsLabeled)

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

write_omittable_type(CoreWriter, OmittableType, IsLabeled)

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

write_string(CoreWriter, String, NullTerminatedStrings)

View Source
-spec write_string(CoreWriter, String, NullTerminatedStrings) -> CoreWriter
                when
                    CoreWriter :: t(),
                    String :: unicode:unicode_binary(),
                    NullTerminatedStrings :: boolean().
Link to this function

write_varint(CoreWriter, Varint)

View Source
-spec write_varint(CoreWriter, Varint) -> CoreWriter when CoreWriter :: t(), Varint :: argo_types:i64().