libcbor
0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
|
Go to the source code of this file.
Functions | |
cbor_item_t * | cbor_load (cbor_data source, size_t source_size, struct cbor_load_result *result) |
Loads data item from a buffer. More... | |
cbor_item_t * | cbor_copy (cbor_item_t *item) |
Deep copy of an item. More... | |
cbor_item_t* cbor_copy | ( | cbor_item_t * | item | ) |
cbor_item_t* cbor_load | ( | cbor_data | source, |
size_t | source_size, | ||
struct cbor_load_result * | result | ||
) |
Loads data item from a buffer.
source | The buffer |
source_size | |
result[out] | Result indicator. CBOR_ERR_NONE on success |
NULL
on failure. In that case, result
contains location and description of the error.