Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcborstreamreader.cpp File Reference
#include "qcborstreamreader.h"
#include <private/qcborcommon_p.h>
#include <private/qbytearray_p.h>
#include <private/qnumeric_p.h>
#include <private/qstringconverter_p.h>
#include <qiodevice.h>
#include <qdebug.h>
#include <qstack.h>
#include <qvarlengtharray.h>
#include <cborparser.c>
#include "moc_qcborstreamreader.cpp"
+ Include dependency graph for qcborstreamreader.cpp:

Go to the source code of this file.

Classes

class  QCborStreamReaderPrivate
 
struct  QCborStreamReaderPrivate::ReadStringChunk
 

Macros

#define CBOR_NO_ENCODER_API
 
#define CBOR_PARSER_READER_CONTROL   1
 
#define CBOR_PARSER_CAN_READ_BYTES_FUNCTION   qt_cbor_decoder_can_read
 
#define CBOR_PARSER_ADVANCE_BYTES_FUNCTION   qt_cbor_decoder_advance
 
#define CBOR_PARSER_TRANSFER_STRING_FUNCTION   qt_cbor_decoder_transfer_string
 
#define CBOR_PARSER_READ_BYTES_FUNCTION   qt_cbor_decoder_read
 

Functions

static QT_BEGIN_NAMESPACE bool qt_cbor_decoder_can_read (void *token, size_t len)
 
static void qt_cbor_decoder_advance (void *token, size_t len)
 
static voidqt_cbor_decoder_read (void *token, void *userptr, size_t offset, size_t len)
 
static CborError qt_cbor_decoder_transfer_string (void *token, const void **userptr, size_t offset, size_t len)
 
QT_WARNING_PUSH static QT_WARNING_POP CborError _cbor_value_dup_string (const CborValue *, void **, size_t *, CborValue *)
 
static CborError cbor_value_get_half_float_as_float (const CborValue *, float *)
 
void qt_cbor_stream_set_error (QCborStreamReaderPrivate *d, QCborError error)
 
QCborStreamReader::StringResultCode qt_cbor_append_string_chunk (QCborStreamReader &reader, QByteArray *data)
 

Macro Definition Documentation

◆ CBOR_NO_ENCODER_API

#define CBOR_NO_ENCODER_API

Definition at line 6 of file qcborstreamreader.cpp.

◆ CBOR_PARSER_ADVANCE_BYTES_FUNCTION

#define CBOR_PARSER_ADVANCE_BYTES_FUNCTION   qt_cbor_decoder_advance

Definition at line 26 of file qcborstreamreader.cpp.

◆ CBOR_PARSER_CAN_READ_BYTES_FUNCTION

#define CBOR_PARSER_CAN_READ_BYTES_FUNCTION   qt_cbor_decoder_can_read

Definition at line 25 of file qcborstreamreader.cpp.

◆ CBOR_PARSER_READ_BYTES_FUNCTION

#define CBOR_PARSER_READ_BYTES_FUNCTION   qt_cbor_decoder_read

Definition at line 28 of file qcborstreamreader.cpp.

◆ CBOR_PARSER_READER_CONTROL

#define CBOR_PARSER_READER_CONTROL   1

Definition at line 24 of file qcborstreamreader.cpp.

◆ CBOR_PARSER_TRANSFER_STRING_FUNCTION

#define CBOR_PARSER_TRANSFER_STRING_FUNCTION   qt_cbor_decoder_transfer_string

Definition at line 27 of file qcborstreamreader.cpp.

Function Documentation

◆ _cbor_value_dup_string()

QT_WARNING_PUSH static QT_WARNING_POP CborError _cbor_value_dup_string ( const CborValue *  ,
void **  ,
size_t *  ,
CborValue *   
)
static

Definition at line 37 of file qcborstreamreader.cpp.

◆ cbor_value_get_half_float_as_float()

static CborError cbor_value_get_half_float_as_float ( const CborValue *  ,
float *   
)
static

Definition at line 41 of file qcborstreamreader.cpp.

◆ qt_cbor_append_string_chunk()

QCborStreamReader::StringResultCode qt_cbor_append_string_chunk ( QCborStreamReader reader,
QByteArray data 
)

Definition at line 1421 of file qcborstreamreader.cpp.

References QCborStreamReaderPrivate::appendStringChunk().

+ Here is the call graph for this function:

◆ qt_cbor_decoder_advance()

static void qt_cbor_decoder_advance ( void token,
size_t  len 
)
static

Definition at line 653 of file qcborstreamreader.cpp.

References QCborStreamReaderPrivate::MaxCborIndividualSize, Q_ASSERT, QString::size(), and token.

+ Here is the call graph for this function:

◆ qt_cbor_decoder_can_read()

static bool qt_cbor_decoder_can_read ( void token,
size_t  len 
)
inlinestatic

Definition at line 644 of file qcborstreamreader.cpp.

References QCborStreamReaderPrivate::MaxCborIndividualSize, Q_ASSERT, QString::size(), and token.

+ Here is the call graph for this function:

◆ qt_cbor_decoder_read()

static void * qt_cbor_decoder_read ( void token,
void userptr,
size_t  offset,
size_t  len 
)
static

Definition at line 663 of file qcborstreamreader.cpp.

References QString::constData(), Q_ASSERT, QString::size(), and token.

+ Here is the call graph for this function:

◆ qt_cbor_decoder_transfer_string()

static CborError qt_cbor_decoder_transfer_string ( void token,
const void **  userptr,
size_t  offset,
size_t  len 
)
static

Definition at line 674 of file qcborstreamreader.cpp.

References Q_ASSERT, QString::size(), and token.

+ Here is the call graph for this function:

◆ qt_cbor_stream_set_error()

void qt_cbor_stream_set_error ( QCborStreamReaderPrivate d,
QCborError  error 
)

Definition at line 639 of file qcborstreamreader.cpp.

References d, and error.