87 return _(
"unknown error");
90 return _(
"out of memory/need more memory");
93 return _(
"unknown length (attempted to get the length of a map/array/string of indeterminate length");
96 return _(
"attempted to advance past EOF");
99 return _(
"I/O error");
102 return _(
"garbage after the end of the content");
105 return _(
"unexpected end of data");
108 return _(
"unexpected 'break' byte");
111 return _(
"illegal byte (encodes future extension type)");
114 return _(
"mismatched string type in chunked string");
117 return _(
"illegal initial byte (encodes unspecified additional information)");
120 return _(
"illegal encoding of simple type smaller than 32");
123 return _(
"no more byte or text strings available");
126 return _(
"unknown simple type");
129 return _(
"unknown tag");
132 return _(
"inappropriate tag for type");
135 return _(
"duplicate keys in object");
138 return _(
"invalid UTF-8 content in string");
141 return _(
"excluded type found");
144 return _(
"excluded value found");
148 return _(
"value encoded in non-canonical form");
152 return _(
"key in map is not a string");
155 return _(
"map is not sorted");
158 return _(
"map keys are not unique");
161 return _(
"too many items added to encoder");
164 return _(
"too few items added to encoder");
167 return _(
"internal error: data too large");
170 return _(
"internal error: too many nested containers found in recursive function");
173 return _(
"unsupported type");
176 return _(
"validation not implemented for the current parser state");
179 return _(
"conversion to JSON failed: key in object is an array or map");
182 return _(
"conversion to JSON failed: open_memstream unavailable");
185 return _(
"internal error");
@ CborErrorIllegalSimpleType
@ CborErrorInvalidUtf8TextString
@ CborErrorUnsupportedType
@ CborErrorNestingTooDeep
@ CborErrorOverlongEncoding
@ CborErrorNoMoreStringChunks
@ CborErrorUnimplementedValidation
@ CborErrorInappropriateTagForType
@ CborErrorMapKeyNotString
@ CborErrorJsonObjectKeyIsAggregate
@ CborErrorAdvancePastEOF
@ CborErrorMapKeysNotUnique
@ CborErrorDuplicateObjectKeys
@ CborErrorJsonObjectKeyNotString
@ CborErrorUnexpectedBreak
@ CborErrorUnknownSimpleType
@ CborErrorJsonNotImplemented
const char * cbor_error_string(CborError error)