243 static_assert(int(
NoError) == int(CborNoError));
247 static_assert(int(
UnknownError) == int(CborUnknownError));
250 static_assert(int(
AdvancePastEnd) == int(CborErrorAdvancePastEOF));
251 return QStringLiteral(
"Read past end of buffer (more bytes needed)");
256 static_assert(int(
GarbageAtEnd) == int(CborErrorGarbageAtEnd));
259 static_assert(int(
EndOfFile) == int(CborErrorUnexpectedEOF));
260 return QStringLiteral(
"Unexpected end of input data (more bytes needed)");
263 return QStringLiteral(
"Invalid CBOR stream: unexpected 'break' byte");
265 static_assert(int(
UnknownType) == int(CborErrorUnknownType));
268 static_assert(int(
IllegalType) == int(CborErrorIllegalType));
271 static_assert(int(
IllegalNumber) == int(CborErrorIllegalNumber));
272 return QStringLiteral(
"Invalid CBOR stream: illegal number encoding (future extension)");
275 return QStringLiteral(
"Invalid CBOR stream: illegal simple type");
278 return QStringLiteral(
"Invalid CBOR stream: invalid UTF-8 text string");
280 static_assert(int(
DataTooLarge) == int(CborErrorDataTooLarge));
283 static_assert(int(
NestingTooDeep) == int(CborErrorNestingTooDeep));
284 return QStringLiteral(
"Internal limitation: data nesting too deep");
291 CborError err = CborError(
int(
c));