62#define QCBOR_VERSION_MAJOR 2
63#define QCBOR_VERSION_MINOR 0
64#define QCBOR_VERSION_PATCH 0
77#define QCBOR_SPIFFY_DECODE
82#define CBOR_MAJOR_TYPE_POSITIVE_INT 0
85#define CBOR_MAJOR_TYPE_NEGATIVE_INT 1
88#define CBOR_MAJOR_TYPE_BYTE_STRING 2
92#define CBOR_MAJOR_TYPE_TEXT_STRING 3
95#define CBOR_MAJOR_TYPE_ARRAY 4
100#define CBOR_MAJOR_TYPE_MAP 5
109#define CBOR_MAJOR_TYPE_TAG 6
110#define CBOR_MAJOR_TYPE_OPTIONAL 6
113#define CBOR_MAJOR_TYPE_SIMPLE 7
124#define CBOR_TAG_DATE_STRING 0
126#define CBOR_TAG_DATE_EPOCH 1
129#define CBOR_TAG_POS_BIGNUM 2
132#define CBOR_TAG_NEG_BIGNUM 3
136#define CBOR_TAG_DECIMAL_FRACTION 4
140#define CBOR_TAG_BIGFLOAT 5
145#define CBOR_TAG_COSE_ENCRYPT0 16
146#define CBOR_TAG_COSE_ENCRYPTO 16
151#define CBOR_TAG_COSE_MAC0 17
155#define CBOR_TAG_COSE_SIGN1 18
161#define CBOR_TAG_ENC_AS_B64URL 21
167#define CBOR_TAG_ENC_AS_B64 22
175#define CBOR_TAG_ENC_AS_B16 23
177#define CBOR_TAG_CBOR 24
179#define CBOR_TAG_URI 32
181#define CBOR_TAG_B64URL 33
183#define CBOR_TAG_B64 34
185#define CBOR_TAG_REGEX 35
187#define CBOR_TAG_MIME 36
189#define CBOR_TAG_BIN_UUID 37
193#define CBOR_TAG_CWT 61
197#define CBOR_TAG_CBOR_SEQUENCE 63
201#define CBOR_TAG_COSE_ENCRYPT 96
202#define CBOR_TAG_ENCRYPT 96
206#define CBOR_TAG_COSE_MAC 97
207#define CBOR_TAG_MAC 97
211#define CBOR_TAG_COSE_SIGN 98
212#define CBOR_TAG_SIGN 98
216#define CBOR_TAG_DAYS_EPOCH 100
220#define CBOR_TAG_GEO_COORD 103
222#define CBOR_TAG_BINARY_MIME 257
226#define CBOR_TAG_DAYS_STRING 1004
229#define CBOR_TAG_CBOR_MAGIC 55799
232#define CBOR_TAG_INVALID16 0xffff
234#define CBOR_TAG_INVALID32 0xffffffff
236#define CBOR_TAG_INVALID64 0xffffffffffffffff
239#define CBOR_TAG_ANY (CBOR_TAG_INVALID64 - 1)
311#define QCBOR_START_OF_NOT_WELL_FORMED_ERRORS 20
340#define QCBOR_START_OF_UNRECOVERABLE_DECODE_ERRORS 30
361#define QCBOR_END_OF_NOT_WELL_FORMED_ERRORS 39
421 QCBOR_ERR_BAD_TAG_CONTENT = 48,
422 QCBOR_ERR_BAD_OPT_TAG = 48,
457#define QCBOR_END_OF_UNRECOVERABLE_DECODE_ERRORS 59
610#define QCBOR_MAX_ARRAY_NESTING 15
617#define QCBOR_MAX_ITEMS_IN_ARRAY (UINT16_MAX-1)
626#define QCBOR_MAX_ITEMS_IN_MAP (QCBOR_MAX_ITEMS_IN_ARRAY/2)
QCBORError
Definition qcbor_common.h:260
@ QCBOR_ERR_DATE_OVERFLOW
Definition qcbor_common.h:484
@ QCBOR_ERR_MAP_NOT_ENTERED
Definition qcbor_common.h:511
@ QCBOR_ERR_UNEXPECTED_TAG_NUMBER
Definition qcbor_common.h:568
@ QCBOR_ERR_BAD_TYPE_7
Definition qcbor_common.h:316
@ QCBOR_ERR_UNSORTED
Definition qcbor_common.h:452
@ QCBOR_ERR_ARRAY_NESTING_TOO_DEEP
Definition qcbor_common.h:282
@ QCBOR_ERR_ARRAY_DECODE_TOO_LONG
Definition qcbor_common.h:380
@ QCBOR_ERR_BUFFER_TOO_LARGE
Definition qcbor_common.h:275
@ QCBOR_ERR_DCBOR_CONFORMANCE
Definition qcbor_common.h:449
@ QCBOR_ERR_ARRAY_TOO_LONG
Definition qcbor_common.h:291
@ QCBOR_ERR_HALF_PRECISION_DISABLED
Definition qcbor_common.h:525
@ QCBOR_ERR_STRING_TOO_LONG
Definition qcbor_common.h:388
@ QCBOR_ERR_BAD_INT
Definition qcbor_common.h:338
@ QCBOR_ERR_NUMBER_SIGN_CONVERSION
Definition qcbor_common.h:503
@ QCBOR_ERR_BAD_BREAK
Definition qcbor_common.h:359
@ QCBOR_ERR_MEM_POOL_SIZE
Definition qcbor_common.h:474
@ QCBOR_ERR_INDEF_LEN_STRINGS_DISABLED
Definition qcbor_common.h:426
@ QCBOR_ERR_CANNOT_CANCEL
Definition qcbor_common.h:309
@ QCBOR_ERR_CALLBACK_FAIL
Definition qcbor_common.h:515
@ QCBOR_ERR_CLOSE_MISMATCH
Definition qcbor_common.h:286
@ QCBOR_ERR_EXTRA_BYTES
Definition qcbor_common.h:321
@ QCBOR_ERR_NOT_PREFERRED
Definition qcbor_common.h:554
@ QCBOR_ERR_ARRAY_OR_MAP_STILL_OPEN
Definition qcbor_common.h:301
@ QCBOR_ERR_NO_NEGATIVE_ZERO
Definition qcbor_common.h:565
@ QCBOR_ERR_OPEN_BYTE_STRING
Definition qcbor_common.h:305
@ QCBOR_ERR_UNPROCESSED_TAG_NUMBER
Definition qcbor_common.h:572
@ QCBOR_ERR_UNRECOVERABLE_TAG_CONTENT
Definition qcbor_common.h:420
@ QCBOR_ERR_NO_STRING_ALLOCATOR
Definition qcbor_common.h:399
@ QCBOR_ERR_LAST_USER_DEFINED
Definition qcbor_common.h:580
@ QCBOR_ERR_NO_MORE_ITEMS
Definition qcbor_common.h:495
@ QCBOR_ERR_INDEF_LEN_ARRAYS_DISABLED
Definition qcbor_common.h:431
@ QCBOR_ERR_ALL_FLOAT_DISABLED
Definition qcbor_common.h:540
@ QCBOR_ERR_TAGS_DISABLED
Definition qcbor_common.h:435
@ QCBOR_ERR_MAP_LABEL_TYPE
Definition qcbor_common.h:410
@ QCBOR_ERR_UNSUPPORTED
Definition qcbor_common.h:328
@ QCBOR_ERR_LABEL_NOT_FOUND
Definition qcbor_common.h:499
@ QCBOR_ERR_FLOAT_EXCEPTION
Definition qcbor_common.h:536
@ QCBOR_ERR_INDEFINITE_STRING_CHUNK
Definition qcbor_common.h:346
@ QCBOR_ERR_NOT_ALLOWED
Definition qcbor_common.h:557
@ QCBOR_ERR_EXIT_MISMATCH
Definition qcbor_common.h:488
@ QCBOR_ERR_HW_FLOAT_DISABLED
Definition qcbor_common.h:529
@ QCBOR_ERR_UNEXPECTED_TYPE
Definition qcbor_common.h:465
@ QCBOR_ERR_RECOVERABLE_BAD_TAG_CONTENT
Definition qcbor_common.h:547
@ QCBOR_ERR_ENCODE_UNSUPPORTED
Definition qcbor_common.h:270
@ QCBOR_ERR_INT_OVERFLOW
Definition qcbor_common.h:479
@ QCBOR_ERR_TOO_MANY_CLOSES
Definition qcbor_common.h:296
@ QCBOR_ERR_DUPLICATE_LABEL
Definition qcbor_common.h:468
@ QCBOR_ERR_STRING_ALLOCATE
Definition qcbor_common.h:404
@ QCBOR_ERR_CDE_CONFORMANCE
Definition qcbor_common.h:445
@ QCBOR_ERR_BAD_EXP_AND_MANTISSA
Definition qcbor_common.h:393
@ QCBOR_ERR_TOO_MANY_TAGS
Definition qcbor_common.h:462
@ QCBOR_ERR_CONVERSION_UNDER_OVER_FLOW
Definition qcbor_common.h:507
@ QCBOR_ERR_FLOAT_DATE_DISABLED
Definition qcbor_common.h:522
@ QCBOR_ERR_PREFERRED_CONFORMANCE
Definition qcbor_common.h:441
@ QCBOR_ERR_ARRAY_OR_MAP_UNCONSUMED
Definition qcbor_common.h:333
@ QCBOR_ERR_BUFFER_TOO_SMALL
Definition qcbor_common.h:266
@ QCBOR_ERR_CANNOT_ENTER_ALLOCATED_STRING
Definition qcbor_common.h:562
@ QCBOR_ERR_ARRAY_DECODE_NESTING_TOO_DEEP
Definition qcbor_common.h:374
@ QCBOR_ERR_CANT_CHECK_FLOAT_CONFORMANCE
Definition qcbor_common.h:455
@ QCBOR_ERR_FIRST_USER_DEFINED
Definition qcbor_common.h:577
@ QCBOR_SUCCESS
Definition qcbor_common.h:262
@ QCBOR_ERR_HIT_END
Definition qcbor_common.h:354
@ QCBOR_ERR_INPUT_TOO_LARGE
Definition qcbor_common.h:366
const char * qcbor_err_to_str(QCBORError uErr)
Get string describing an error code.