View Source argo_block_decoder (argo v1.0.2)

Summary

Types

-type kind() ::
    #argo_dedupe_block_decoder{} | #argo_inline_block_decoder{} | #argo_normal_block_decoder{}.
-type t() :: #argo_block_decoder{}.

Functions

Link to this function

decode_boolean(BlockDecoder, CoreReader)

View Source
-spec decode_boolean(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                  when BlockDecoder :: t(), CoreReader :: argo_core_reader:t(), Value :: boolean().
Link to this function

decode_bytes(BlockDecoder, CoreReader)

View Source
-spec decode_bytes(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                when BlockDecoder :: t(), CoreReader :: argo_core_reader:t(), Value :: binary().
Link to this function

decode_fixed(BlockDecoder, CoreReader)

View Source
-spec decode_fixed(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                when BlockDecoder :: t(), CoreReader :: argo_core_reader:t(), Value :: binary().
Link to this function

decode_float64(BlockDecoder, CoreReader)

View Source
-spec decode_float64(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                  when BlockDecoder :: t(), CoreReader :: argo_core_reader:t(), Value :: float().
Link to this function

decode_scalar(BlockDecoder, CoreReader, ScalarWireType)

View Source
-spec decode_scalar(BlockDecoder, CoreReader, ScalarWireType) -> {BlockDecoder, CoreReader, ScalarValue}
                 when
                     BlockDecoder :: t(),
                     CoreReader :: argo_core_reader:t(),
                     ScalarWireType :: argo_scalar_wire_type:t(),
                     ScalarValue :: argo_scalar_value:t().
Link to this function

decode_string(BlockDecoder, CoreReader)

View Source
-spec decode_string(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                 when
                     BlockDecoder :: t(),
                     CoreReader :: argo_core_reader:t(),
                     Value :: unicode:unicode_binary().
Link to this function

decode_varint(BlockDecoder, CoreReader)

View Source
-spec decode_varint(BlockDecoder, CoreReader) -> {BlockDecoder, CoreReader, Value}
                 when
                     BlockDecoder :: t(),
                     CoreReader :: argo_core_reader:t(),
                     Value :: argo_types:i64().
-spec format_error(dynamic(), dynamic()) -> dynamic().
Link to this function

new(Header, BlockWireType, OptionBlock)

View Source
-spec new(Header, BlockWireType, none | {some, Block}) -> BlockDecoder
       when
           Header :: argo_header:t(),
           BlockWireType :: argo_block_wire_type:t(),
           Block :: binary(),
           BlockDecoder :: t().