Global constants¶
Constants used by all TinyCBOR function groups.
-
CBOR_API const char *
cbor_error_string
(cbor.h::CborError
error)¶ Returns the error string corresponding to the CBOR error condition error.
-
enum
CborType
¶ - CborIntegerType
= 0x00
- CborByteStringType
= 0x40
- CborTextStringType
= 0x60
- CborArrayType
= 0x80
- CborMapType
= 0xa0
- CborTagType
= 0xc0
- CborSimpleType
= 0xe0
- CborBooleanType
= 0xf5
- CborNullType
= 0xf6
- CborUndefinedType
= 0xf7
- CborHalfFloatType
= 0xf9
- CborFloatType
= 0xfa
- CborDoubleType
= 0xfb
- CborInvalidType
= 0xff
- CborIntegerType
-
enum
CborKnownTags
¶ - CborDateTimeStringTag
= 0
- CborUnixTime_tTag
= 1
- CborPositiveBignumTag
= 2
- CborNegativeBignumTag
= 3
- CborDecimalTag
= 4
- CborBigfloatTag
= 5
- CborCOSE_Encrypt0Tag
= 16
- CborCOSE_Mac0Tag
= 17
- CborCOSE_Sign1Tag
= 18
- CborExpectedBase64urlTag
= 21
- CborExpectedBase64Tag
= 22
- CborExpectedBase16Tag
= 23
- CborEncodedCborTag
= 24
- CborUrlTag
= 32
- CborBase64urlTag
= 33
- CborBase64Tag
= 34
- CborRegularExpressionTag
= 35
- CborMimeMessageTag
= 36
- CborCOSE_EncryptTag
= 96
- CborCOSE_MacTag
= 97
- CborCOSE_SignTag
= 98
- CborSignatureTag
= 55799
- CborDateTimeStringTag
-
enum
CborError
¶ - CborNoError
= 0
- CborUnknownError
- CborErrorUnknownLength
- CborErrorAdvancePastEOF
- CborErrorIO
- CborErrorGarbageAtEnd
= 256
- CborErrorUnexpectedEOF
- CborErrorUnexpectedBreak
- CborErrorUnknownType
- CborErrorIllegalType
- CborErrorIllegalNumber
- CborErrorIllegalSimpleType
- CborErrorUnknownSimpleType
= 512
- CborErrorUnknownTag
- CborErrorInappropriateTagForType
- CborErrorDuplicateObjectKeys
- CborErrorInvalidUtf8TextString
- CborErrorExcludedType
- CborErrorExcludedValue
- CborErrorImproperValue
- CborErrorOverlongEncoding
- CborErrorMapKeyNotString
- CborErrorMapNotSorted
- CborErrorMapKeysNotUnique
- CborErrorTooManyItems
= 768
- CborErrorTooFewItems
- CborErrorDataTooLarge
= 1024
- CborErrorNestingTooDeep
- CborErrorUnsupportedType
- CborErrorJsonObjectKeyIsAggregate
= 1280
- CborErrorJsonObjectKeyNotString
- CborErrorJsonNotImplemented
- CborErrorOutOfMemory
= (int) (~0U / 2 + 1)
- CborErrorInternalError
= (int) (~0U / 2)
- CborNoError
-
const size_t
CborIndefiniteLength
¶ This variable is a constant used to indicate that the length of the map or array is not yet determined.
1
= ((size_t)-1)
It is used in functions
cborencoder.c::cbor_encoder_create_map()
andcborencoder.c::cbor_encoder_create_array()
-
uint64_t
CborTag
¶ This typedef is an unsigned 64-bit integer.
Known CBOR tags can be used from the CborKnownTags enum but the user application may use other tag values than the ones specified in RFC 7049.