erl_cbor_util (erl_cbor v2.0.1)
Link to this section Summary
Link to this section Functions
Link to this function
binary_to_hex_string(Bin)
Specs
binary_to_hex_string(binary()) -> unicode:chardata().
Link to this function
decode_sequence_header(Tag, Data)
Specs
decode_sequence_header(Tag, nonempty_binary()) -> {ok, Len, nonempty_binary()} | {error, Reason} when Tag :: byte(), Len :: non_neg_integer(), Reason :: truncated_sequence_header | invalid_sequence_header.
Link to this function
encode_sequence_header(MajorType, Len)
Specs
encode_sequence_header(MajorType :: 0..7, Len) -> nonempty_binary() when Len :: non_neg_integer().
Link to this function
hex_string_to_binary(Str)
Specs
hex_string_to_binary(binary()) -> binary().
Link to this function
list_to_map(Values)
Specs
list_to_map(list()) -> map().
Link to this function
unsigned_integer_bytes(I)
Specs
unsigned_integer_bytes(non_neg_integer()) -> nonempty_binary().