erl_cbor (erl_cbor v2.0.1)

Link to this section Summary

Link to this section Types

Link to this type

simple_value/0

Specs

simple_value() :: {simple_value, byte()} | false | true | null | undefined.

Specs

tag() :: non_neg_integer().

Specs

type() ::
    unsigned_integer | neg_integer | byte_string | utf8_string | array | map | simple | float |
    tag().

Specs

value() ::
    {type(),
     integer() | binary() | list() | map() | byte() | boolean() | null | undefined | float()}.

Link to this section Functions

Specs

decode(binary()) -> erl_cbor_decoding:decoding_result(term()).
Link to this function

decode(Data, Opts)

Specs

Link to this function

decode_hex(Value)

Specs

decode_hex(binary()) -> erl_cbor_decoding:decoding_result(term()).
Link to this function

decode_hex(Str, Opts)

Specs

decode_hex(binary(), erl_cbor_decoding:options()) -> erl_cbor_decoding:decoding_result(term()).

Specs

encode(erl_cbor_encoding:encodable()) -> nonempty_binary() | [<<_:8>> | unicode:chardata(), ...].
Link to this function

encode_hex(Value)

Specs