View Source argo_core_reader (argo v1.0.3)

Summary

Types

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

Functions

-spec format_error(dynamic(), dynamic()) -> dynamic().
Link to this function

length_bounds_check(CoreReader, Length)

View Source
-spec length_bounds_check(CoreReader, Length) -> ok when CoreReader :: t(), Length :: integer().
-spec new(Core) -> CoreWriter when Core :: binary(), CoreWriter :: t().
-spec peek_label(CoreReader) -> {ok, Label} | error when CoreReader :: t(), Label :: argo_types:label().
Link to this function

read_bytes(CoreReader, Length)

View Source
-spec read_bytes(CoreReader, Length) -> {CoreReader, Bytes}
              when CoreReader :: t(), Length :: argo_types:length(), Bytes :: binary().
Link to this function

read_float64(CoreReader)

View Source
-spec read_float64(CoreReader) -> {CoreReader, Float64} when CoreReader :: t(), Float64 :: float().
-spec read_label(CoreReader) -> {CoreReader, Label} when CoreReader :: t(), Label :: argo_types:label().
Link to this function

read_labeled_type(CoreReader)

View Source
-spec read_labeled_type(CoreReader) -> {CoreReader, LabeledType}
                     when CoreReader :: t(), LabeledType :: argo_core:labeled_type().
-spec read_length(CoreReader) -> {CoreReader, Length}
               when CoreReader :: t(), Length :: argo_types:length().
Link to this function

read_nullable_type(CoreReader, IsLabeled)

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

read_omittable_type(CoreReader, IsLabeled)

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

read_string(CoreReader, Length, NullTerminatedStrings)

View Source
-spec read_string(CoreReader, Length, NullTerminatedStrings) -> {CoreReader, String}
               when
                   CoreReader :: t(),
                   Length :: argo_types:length(),
                   NullTerminatedStrings :: boolean(),
                   String :: unicode:unicode_binary().
-spec read_varint(CoreReader) -> {CoreReader, Varint} when CoreReader :: t(), Varint :: argo_types:i64().