const unsigned char * cbor_data
cbor_error_code
Possible decoding errors.
@ CBOR_ERR_SYNTAXERROR
Stack parsing algorithm failed.
@ CBOR_ERR_MEMERROR
Memory error - item allocation failed.
cbor_type
Specifies the Major type of cbor_item_t.
@ CBOR_TYPE_FLOAT_CTRL
7 - decimals and special values (true, false, nil, ...)
@ CBOR_TYPE_UINT
0 - positive integers
@ CBOR_TYPE_BYTESTRING
2 - byte strings
@ CBOR_TYPE_STRING
3 - strings
@ CBOR_TYPE_NEGINT
1 - negative integers
@ CBOR_TYPE_ARRAY
4 - arrays
_cbor_dst_metadata
Metadata for dynamically sized types.
@ _CBOR_METADATA_DEFINITE
@ _CBOR_METADATA_INDEFINITE
_cbor_ctrl
Semantic mapping for CTRL simple values.
unsigned char * cbor_mutable_data
cbor_decoder_status
Streaming decoder result - status.
@ CBOR_DECODER_NEDATA
Not enough data to invoke a callback.
@ CBOR_DECODER_FINISHED
Decoding finished successfully (a callback has been invoked)
@ CBOR_DECODER_ERROR
Bad data (reserved MTB, malformed value, etc.)
cbor_float_width
Possible widths of CBOR_TYPE_FLOAT_CTRL items.
@ CBOR_FLOAT_32
Single float.
@ CBOR_FLOAT_16
Half float.
@ CBOR_FLOAT_0
Internal use - ctrl and special values.
cbor_int_width
Possible widths of CBOR_TYPE_UINT items.
Streaming decoder result.
enum cbor_decoder_status status
The decoding status.
size_t read
Input bytes read/consumed.
size_t required
Number of bytes in the input buffer needed to resume parsing.
High-level decoding error.
size_t position
Approximate position.
cbor_error_code code
Description.
Defines cbor_item_t::data structure for indefinite strings and bytestrings.
unsigned char * data
Raw data block - interpretation depends on metadata.
cbor_type type
Major type discriminator.
size_t refcount
Reference count - initialize to 0.
union cbor_item_metadata metadata
Discriminated by type.
High-level decoding result.
size_t read
Number of bytes read.
struct cbor_error error
Error indicator.
Simple pair of items for use in maps.