39 #define TINYCBOR_VERSION ((TINYCBOR_VERSION_MAJOR << 16) | (TINYCBOR_VERSION_MINOR << 8) | TINYCBOR_VERSION_PATCH)
55 # define SIZE_MAX ((size_t)-1)
61 #ifndef CBOR_PRIVATE_API
62 # define CBOR_PRIVATE_API
64 #ifndef CBOR_INLINE_API
65 # if defined(__cplusplus)
66 # define CBOR_INLINE inline
67 # define CBOR_INLINE_API inline
69 # define CBOR_INLINE_API static CBOR_INLINE
70 # if defined(_MSC_VER)
71 # define CBOR_INLINE __inline
72 # elif defined(__GNUC__)
73 # define CBOR_INLINE __inline__
74 # elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
75 # define CBOR_INLINE inline
127 #define CborDateTimeStringTag CborDateTimeStringTag
128 #define CborUnixTime_tTag CborUnixTime_tTag
129 #define CborPositiveBignumTag CborPositiveBignumTag
130 #define CborNegativeBignumTag CborNegativeBignumTag
131 #define CborDecimalTag CborDecimalTag
132 #define CborBigfloatTag CborBigfloatTag
133 #define CborCOSE_Encrypt0Tag CborCOSE_Encrypt0Tag
134 #define CborCOSE_Mac0Tag CborCOSE_Mac0Tag
135 #define CborCOSE_Sign1Tag CborCOSE_Sign1Tag
136 #define CborExpectedBase64urlTag CborExpectedBase64urlTag
137 #define CborExpectedBase64Tag CborExpectedBase64Tag
138 #define CborExpectedBase16Tag CborExpectedBase16Tag
139 #define CborEncodedCborTag CborEncodedCborTag
140 #define CborUrlTag CborUrlTag
141 #define CborBase64urlTag CborBase64urlTag
142 #define CborBase64Tag CborBase64Tag
143 #define CborRegularExpressionTag CborRegularExpressionTag
144 #define CborMimeMessageTag CborMimeMessageTag
145 #define CborCOSE_EncryptTag CborCOSE_EncryptTag
146 #define CborCOSE_MacTag CborCOSE_MacTag
147 #define CborCOSE_SignTag CborCOSE_SignTag
148 #define CborSignatureTag CborSignatureTag
235 static const size_t CborIndefiniteLength =
SIZE_MAX;
237 #ifndef CBOR_NO_ENCODER_API
350 #ifndef CBOR_NO_PARSER_API
357 {
return it->remaining == 0; }
359 {
return it->source.ptr; }
633 #ifndef CBOR_NO_VALIDATION_API
680 #ifndef CBOR_NO_PRETTY_API
705 #if !defined(__STDC_HOSTED__) || __STDC_HOSTED__-0 == 1
CBOR_INLINE_API bool cbor_value_string_iteration_at_end(const CborValue *value)
CBOR_INLINE_API CborError cbor_value_get_byte_string_chunk(const CborValue *value, const uint8_t **bufferptr, size_t *len, CborValue *next)
CBOR_INLINE_API uint8_t * _cbor_encoder_get_buffer_pointer(const CborEncoder *encoder)
CBOR_API CborError cbor_encoder_close_container_checked(CborEncoder *parentEncoder, const CborEncoder *containerEncoder)
CBOR_INLINE_API CborError cbor_value_begin_string_iteration(CborValue *value)
CborError(* CborStreamFunction)(void *token, const char *fmt,...)
#define CborPositiveBignumTag
@ CborEncoderAppendStringData
@ CborEncoderAppendCborData
#define CborEncodedCborTag
CBOR_INLINE_API CborError cbor_value_get_double(const CborValue *value, double *result)
#define CborNegativeBignumTag
CBOR_API CborError cbor_value_to_pretty_stream(CborStreamFunction streamFunction, void *token, CborValue *value, int flags)
#define CborUnixTime_tTag
#define CborRegularExpressionTag
#define CborDateTimeStringTag
CBOR_API CborError cbor_value_validate(const CborValue *it, uint32_t flags)
CBOR_INLINE_API uint64_t _cbor_value_extract_int64_helper(const CborValue *value)
#define CborExpectedBase64Tag
#define CborMimeMessageTag
CBOR_INLINE_API CborError cbor_value_dup_byte_string(const CborValue *value, uint8_t **buffer, size_t *buflen, CborValue *next)
#define CborExpectedBase64urlTag
@ CborErrorIllegalSimpleType
@ CborErrorInvalidUtf8TextString
@ CborErrorUnsupportedType
@ CborErrorNestingTooDeep
@ CborErrorOverlongEncoding
@ CborErrorNoMoreStringChunks
@ CborErrorUnimplementedValidation
@ CborErrorInappropriateTagForType
@ CborErrorMapKeyNotString
@ CborErrorJsonObjectKeyIsAggregate
@ CborErrorAdvancePastEOF
@ CborErrorMapKeysNotUnique
@ CborErrorDuplicateObjectKeys
@ CborErrorJsonObjectKeyNotString
@ CborErrorUnexpectedBreak
@ CborErrorUnknownSimpleType
@ CborErrorJsonNotImplemented
#define CborCOSE_EncryptTag
CBOR_PRIVATE_API CborError _cbor_value_dup_string(const CborValue *value, void **buffer, size_t *buflen, CborValue *next)
CBOR_INLINE_API CborError cbor_value_get_string_chunk_size(const CborValue *value, size_t *len)
CborError(* CborEncoderWriteFunction)(void *, const void *, size_t, CborEncoderAppendType)
CBOR_API CborError cbor_value_get_half_float_as_float(const CborValue *value, float *result)
@ CborIteratorFlag_WriterFunction
@ CborIteratorFlag_ContainerIsMap_
@ CborValidateShortestFloatingPoint
@ CborValidateNoUnknownSimpleTypes
@ CborValidateCompleteData
@ CborValidateNoUndefined
@ CborValidateMapIsSorted
@ CborValidateMapKeysAreUnique
@ CborValidateNoUnknownSimpleTypesSA
@ CborValidateNoUnknownTagsSR
@ CborValidateNoUnknownTagsSA
@ CborValidateShortestNumbers
@ CborValidateCanonicalFormat
@ CborValidateFiniteFloatingPoint
@ CborValidateNoUnknownTags
@ CborValidateShortestIntegrals
@ CborValidateNoIndeterminateLength
@ CborValidateMapKeysAreString
CBOR_INLINE_API CborError cbor_value_dup_text_string(const CborValue *value, char **buffer, size_t *buflen, CborValue *next)
@ CborPrettyIndicateIndeterminateLength
@ CborPrettyIndicateIndetermineLength
@ CborPrettyMergeStringFragments
@ CborPrettyNumericEncodingIndicators
@ CborPrettyShowStringFragments
@ CborPrettyTextualEncodingIndicators
@ CborPrettyIndicateOverlongNumbers
@ CborIteratorFlag_NextIsMapKey
@ CborIteratorFlag_IntegerValueIs64Bit
@ CborIteratorFlag_NegativeInteger
@ CborIteratorFlag_IntegerValueTooLarge
@ CborIteratorFlag_ContainerIsMap
@ CborIteratorFlag_IteratingStringChunks
@ CborIteratorFlag_UnknownLength
@ CborIteratorFlag_BeforeFirstStringChunk
CBOR_INLINE_API CborError cbor_value_to_pretty(FILE *out, const CborValue *value)
CBOR_API CborError cbor_value_to_pretty_advance_flags(FILE *out, CborValue *value, int flags)
@ CborParserFlag_ExternalSource
CBOR_INLINE_API CborError cbor_value_finish_string_iteration(CborValue *value)
#define CborCOSE_Encrypt0Tag
#define CborExpectedBase16Tag
CBOR_API CborError cbor_value_to_pretty_advance(FILE *out, CborValue *value)
CBOR_API const char * cbor_error_string(CborError error)
#define CborCOSE_Sign1Tag
QMap< QString, QString > map
[6]
CBOR_API CborError cbor_encode_negative_int(CborEncoder *encoder, uint64_t absolute_value)
CBOR_API CborError cbor_encode_byte_string(CborEncoder *encoder, const uint8_t *string, size_t length)
CBOR_INLINE_API CborError cbor_encode_double(CborEncoder *encoder, double value)
CBOR_API void cbor_encoder_init(CborEncoder *encoder, uint8_t *buffer, size_t size, int flags)
CBOR_API CborError cbor_encode_uint(CborEncoder *encoder, uint64_t value)
CBOR_API CborError cbor_encode_float_as_half_float(CborEncoder *encoder, float value)
CBOR_INLINE_API CborError cbor_encode_null(CborEncoder *encoder)
CBOR_API CborError cbor_encode_text_string(CborEncoder *encoder, const char *string, size_t length)
CBOR_INLINE_API CborError cbor_encode_text_stringz(CborEncoder *encoder, const char *string)
CBOR_API CborError cbor_encoder_close_container(CborEncoder *parentEncoder, const CborEncoder *containerEncoder)
CBOR_INLINE_API size_t cbor_encoder_get_buffer_size(const CborEncoder *encoder, const uint8_t *buffer)
CBOR_API CborError cbor_encode_tag(CborEncoder *encoder, CborTag tag)
CBOR_INLINE_API CborError cbor_encode_boolean(CborEncoder *encoder, bool value)
CBOR_API CborError cbor_encode_simple_value(CborEncoder *encoder, uint8_t value)
CBOR_INLINE_API CborError cbor_encode_undefined(CborEncoder *encoder)
CBOR_API CborError cbor_encoder_create_array(CborEncoder *parentEncoder, CborEncoder *arrayEncoder, size_t length)
CBOR_API CborError cbor_encoder_create_map(CborEncoder *parentEncoder, CborEncoder *mapEncoder, size_t length)
CBOR_API void cbor_encoder_init_writer(CborEncoder *encoder, CborEncoderWriteFunction writer, void *)
CBOR_API CborError cbor_encode_int(CborEncoder *encoder, int64_t value)
CBOR_API CborError cbor_encode_floating_point(CborEncoder *encoder, CborType fpType, const void *value)
CBOR_INLINE_API CborError cbor_encode_half_float(CborEncoder *encoder, const void *value)
CBOR_INLINE_API CborError cbor_encode_float(CborEncoder *encoder, float value)
CBOR_INLINE_API size_t cbor_encoder_get_extra_bytes_needed(const CborEncoder *encoder)
CBOR_INLINE_API CborError cbor_value_copy_text_string(const CborValue *value, char *buffer, size_t *buflen, CborValue *next)
CBOR_INLINE_API CborError cbor_value_get_simple_type(const CborValue *value, uint8_t *result)
CBOR_INLINE_API bool cbor_value_is_length_known(const CborValue *value)
CBOR_INLINE_API const uint8_t * cbor_value_get_next_byte(const CborValue *it)
CBOR_API CborError cbor_value_enter_container(const CborValue *it, CborValue *recursed)
CBOR_INLINE_API bool cbor_value_is_boolean(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_undefined(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_null(const CborValue *value)
CBOR_PRIVATE_API CborError _cbor_value_copy_string(const CborValue *value, void *buffer, size_t *buflen, CborValue *next)
CBOR_API CborError cbor_value_validate_basic(const CborValue *it)
CBOR_INLINE_API bool cbor_value_is_map(const CborValue *value)
CBOR_PRIVATE_API CborError _cbor_value_get_string_chunk_size(const CborValue *value, size_t *len)
CBOR_PRIVATE_API uint64_t _cbor_value_decode_int64_internal(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_tag(const CborValue *value)
CBOR_API CborError cbor_value_skip_tag(CborValue *it)
CBOR_INLINE_API CborError cbor_value_get_raw_integer(const CborValue *value, uint64_t *result)
CBOR_INLINE_API bool cbor_value_is_integer(const CborValue *value)
CBOR_INLINE_API CborType cbor_value_get_type(const CborValue *value)
CBOR_INLINE_API bool cbor_value_at_end(const CborValue *it)
CBOR_INLINE_API CborError cbor_value_get_tag(const CborValue *value, CborTag *result)
CBOR_API CborError cbor_value_leave_container(CborValue *it, const CborValue *recursed)
CBOR_INLINE_API CborError cbor_value_get_half_float(const CborValue *value, void *result)
CBOR_API CborError cbor_value_get_int64_checked(const CborValue *value, int64_t *result)
CBOR_API CborError cbor_parser_init(const uint8_t *buffer, size_t size, uint32_t flags, CborParser *parser, CborValue *it)
CBOR_INLINE_API bool cbor_value_is_double(const CborValue *value)
CBOR_API CborError cbor_value_reparse(CborValue *it)
CBOR_PRIVATE_API CborError _cbor_value_begin_string_iteration(CborValue *value)
CBOR_INLINE_API bool cbor_value_is_simple_type(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_negative_integer(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_half_float(const CborValue *value)
CBOR_INLINE_API CborError cbor_value_get_uint64(const CborValue *value, uint64_t *result)
CBOR_INLINE_API CborError cbor_value_get_int(const CborValue *value, int *result)
CBOR_API CborError cbor_value_advance_fixed(CborValue *it)
CBOR_INLINE_API CborError cbor_value_copy_byte_string(const CborValue *value, uint8_t *buffer, size_t *buflen, CborValue *next)
CBOR_API CborError cbor_parser_init_reader(const struct CborParserOperations *ops, CborParser *parser, CborValue *it, void *token)
CBOR_INLINE_API bool cbor_value_is_unsigned_integer(const CborValue *value)
CBOR_API CborError cbor_value_text_string_equals(const CborValue *value, const char *string, bool *result)
CBOR_PRIVATE_API CborError _cbor_value_finish_string_iteration(CborValue *value)
CBOR_INLINE_API CborError cbor_value_get_text_string_chunk(const CborValue *value, const char **bufferptr, size_t *len, CborValue *next)
CBOR_API CborError cbor_value_calculate_string_length(const CborValue *value, size_t *length)
CBOR_INLINE_API CborError cbor_value_get_map_length(const CborValue *value, size_t *length)
CBOR_INLINE_API bool cbor_value_is_byte_string(const CborValue *value)
CBOR_PRIVATE_API CborError _cbor_value_get_string_chunk(const CborValue *value, const void **bufferptr, size_t *len, CborValue *next)
CBOR_INLINE_API CborError cbor_value_get_boolean(const CborValue *value, bool *result)
CBOR_INLINE_API bool cbor_value_is_array(const CborValue *value)
CBOR_INLINE_API CborError cbor_value_get_int64(const CborValue *value, int64_t *result)
CBOR_API CborError cbor_value_advance(CborValue *it)
CBOR_INLINE_API CborError cbor_value_get_array_length(const CborValue *value, size_t *length)
CBOR_INLINE_API bool cbor_value_is_valid(const CborValue *value)
CBOR_INLINE_API bool cbor_value_is_text_string(const CborValue *value)
CBOR_API CborError cbor_value_map_find_value(const CborValue *map, const char *string, CborValue *element)
CBOR_INLINE_API CborError cbor_value_get_string_length(const CborValue *value, size_t *length)
CBOR_INLINE_API bool cbor_value_is_container(const CborValue *it)
CBOR_API CborError cbor_value_get_int_checked(const CborValue *value, int *result)
CBOR_INLINE_API CborError cbor_value_get_float(const CborValue *value, float *result)
CBOR_INLINE_API bool cbor_value_is_float(const CborValue *value)
PCRE2_SIZE PRIV() strlen(PCRE2_SPTR str)
EGLOutputLayerEXT EGLint EGLAttrib value
GLenum GLuint GLenum GLsizei length
GLsizei const GLfloat * v
[13]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
QTextStream out(stdout)
[7]
union CborEncoder::@261 data
CborEncoderWriteFunction writer
enum CborParserGlobalFlags flags
union CborParser::@262 source
const struct CborParserOperations * ops
CborError(* transfer_string)(void *token, const void **userptr, size_t offset, size_t len)
void(* advance_bytes)(void *token, size_t len)
bool(* can_read_bytes)(void *token, size_t len)
const CborParser * parser
union CborValue::@263 source
QThreadStorage< int * > dummy[8]
XmlOutput::xml_output tag(const QString &name)