5#define CBOR_NO_ENCODER_API
6#define CBOR_NO_PARSER_API
9#include <QtCore/qdatastream.h>
15#include <cborerrorstrings.c>
57#if !defined(QT_NO_DATASTREAM)
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));
297#ifndef QT_BOOTSTRAPPED
298#include "moc_qcborcommon.cpp"
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
QDataStream & operator<<(QDataStream &ds, QCborSimpleType st)
QDataStream & operator>>(QDataStream &ds, QCborSimpleType &st)
GLsizei const GLfloat * v
[13]
#define QStringLiteral(str)
QString toString() const
Returns a text string that matches the error code in this QCborError object.