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.
Link to this type
tag/0
Specs
tag() :: non_neg_integer().
Link to this type
type/0
Specs
type() :: unsigned_integer | neg_integer | byte_string | utf8_string | array | map | simple | float | tag().
Link to this type
value/0
Specs
value() :: {type(), integer() | binary() | list() | map() | byte() | boolean() | null | undefined | float()}.
Link to this section Functions
Link to this function
decode(Data)
Specs
decode(binary()) -> erl_cbor_decoding:decoding_result(term()).
Link to this function
decode(Data, Opts)
Specs
decode(binary(), erl_cbor_decoding:options()) -> erl_cbor_decoding:decoding_result(term()).
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()).
Link to this function
encode(Data)
Specs
encode(erl_cbor_encoding:encodable()) -> nonempty_binary() | [<<_:8>> | unicode:chardata(), ...].
Link to this function
encode_hex(Value)
Specs
encode_hex(erl_cbor_encoding:encodable()) -> unicode:chardata().