View Source argo_block_reader (argo v1.0.0)

Summary

Types

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

Functions

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

length_bounds_check(BlockReader, Length)

View Source
-spec length_bounds_check(BlockReader, Length) -> ok when BlockReader :: t(), Length :: integer().
-spec new(Block) -> BlockWriter when Block :: binary(), BlockWriter :: t().
Link to this function

read_bytes(BlockReader, Length)

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

read_float64(BlockReader)

View Source
-spec read_float64(BlockReader) -> {BlockReader, Float64} when BlockReader :: t(), Float64 :: float().
Link to this function

read_string(BlockReader, Length, NullTerminatedStrings)

View Source
-spec read_string(BlockReader, Length, NullTerminatedStrings) -> {BlockReader, String}
               when
                   BlockReader :: t(),
                   Length :: argo_types:length(),
                   NullTerminatedStrings :: boolean(),
                   String :: unicode:unicode_binary().
Link to this function

read_varint(BlockReader)

View Source
-spec read_varint(BlockReader) -> {BlockReader, Varint}
               when BlockReader :: t(), Varint :: argo_types:i64().