Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCborStreamReaderPrivate Class Reference
+ Collaboration diagram for QCborStreamReaderPrivate:

Classes

struct  ReadStringChunk
 

Public Types

enum  { MaxCborIndividualSize = 9 , IdealIoBufferSize = 256 , MaxCborIndividualSize = 9 , IdealIoBufferSize = 256 }
 
enum  { MaxCborIndividualSize = 9 , IdealIoBufferSize = 256 , MaxCborIndividualSize = 9 , IdealIoBufferSize = 256 }
 

Public Member Functions

 QCborStreamReaderPrivate (const QByteArray &data)
 
 QCborStreamReaderPrivate (QIODevice *device)
 
 ~QCborStreamReaderPrivate ()
 
void setDevice (QIODevice *dev)
 
void initDecoder ()
 
char * bufferPtr ()
 
void preread ()
 
void handleError (CborError err) noexcept
 
bool readFullString (ReadStringChunk params)
 
QCborStreamReader::StringResult< qsizetypereadStringChunk (ReadStringChunk params)
 
qsizetype readStringChunk_byte (ReadStringChunk params, qsizetype len)
 
qsizetype readStringChunk_unicode (ReadStringChunk params, qsizetype utf8len)
 
qsizetype readStringChunk_utf8 (ReadStringChunk params, qsizetype utf8len)
 
bool ensureStringIteration ()
 
 QCborStreamReaderPrivate (const QByteArray &data)
 
 QCborStreamReaderPrivate (QIODevice *device)
 
 ~QCborStreamReaderPrivate ()
 
void setDevice (QIODevice *dev)
 
void initDecoder ()
 
char * bufferPtr ()
 
void preread ()
 
void handleError (CborError err) noexcept
 
bool readFullString (ReadStringChunk params)
 
QCborStreamReader::StringResult< qsizetypereadStringChunk (ReadStringChunk params)
 
qsizetype readStringChunk_byte (ReadStringChunk params, qsizetype len)
 
qsizetype readStringChunk_unicode (ReadStringChunk params, qsizetype utf8len)
 
qsizetype readStringChunk_utf8 (ReadStringChunk params, qsizetype utf8len)
 
bool ensureStringIteration ()
 

Static Public Member Functions

static QCborStreamReader::StringResultCode appendStringChunk (QCborStreamReader &reader, QByteArray *data)
 
static QCborStreamReader::StringResultCode appendStringChunk (QCborStreamReader &reader, QByteArray *data)
 

Public Attributes

QIODevicedevice
 
QByteArray buffer
 
QStack< CborValue > containerStack
 
CborParser parser
 
CborValue currentElement
 
QCborError lastError = {}
 
QByteArray::size_type bufferStart = 0
 
bool corrupt = false
 

Detailed Description

Definition at line 515 of file qcborstreamreader.cpp.

Member Enumeration Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
MaxCborIndividualSize 
IdealIoBufferSize 
MaxCborIndividualSize 
IdealIoBufferSize 

Definition at line 518 of file qcborstreamreader.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
MaxCborIndividualSize 
IdealIoBufferSize 
MaxCborIndividualSize 
IdealIoBufferSize 

Definition at line 518 of file qcborstreamreader.cpp.

Constructor & Destructor Documentation

◆ QCborStreamReaderPrivate() [1/4]

QCborStreamReaderPrivate::QCborStreamReaderPrivate ( const QByteArray & data)
inline

Definition at line 536 of file qcborstreamreader.cpp.

References QCborStreamReaderPrivate(), device, and initDecoder().

Referenced by QCborStreamReaderPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QCborStreamReaderPrivate() [2/4]

QCborStreamReaderPrivate::QCborStreamReaderPrivate ( QIODevice * device)
inline

Definition at line 542 of file qcborstreamreader.cpp.

References setDevice().

+ Here is the call graph for this function:

◆ ~QCborStreamReaderPrivate() [1/2]

QCborStreamReaderPrivate::~QCborStreamReaderPrivate ( )
inline

Definition at line 547 of file qcborstreamreader.cpp.

◆ QCborStreamReaderPrivate() [3/4]

QCborStreamReaderPrivate::QCborStreamReaderPrivate ( const QByteArray & data)
inline

Definition at line 536 of file qcborstreamreader.cpp.

◆ QCborStreamReaderPrivate() [4/4]

QCborStreamReaderPrivate::QCborStreamReaderPrivate ( QIODevice * device)
inline

Definition at line 542 of file qcborstreamreader.cpp.

◆ ~QCborStreamReaderPrivate() [2/2]

QCborStreamReaderPrivate::~QCborStreamReaderPrivate ( )
inline

Definition at line 547 of file qcborstreamreader.cpp.

Member Function Documentation

◆ appendStringChunk() [1/2]

QCborStreamReader::StringResultCode QCborStreamReaderPrivate::appendStringChunk ( QCborStreamReader & reader,
QByteArray * data )
inlinestatic

Definition at line 1613 of file qcborstreamreader.cpp.

◆ appendStringChunk() [2/2]

static QCborStreamReader::StringResultCode QCborStreamReaderPrivate::appendStringChunk ( QCborStreamReader & reader,
QByteArray * data )
static

◆ bufferPtr() [1/2]

char * QCborStreamReaderPrivate::bufferPtr ( )
inline

Definition at line 574 of file qcborstreamreader.cpp.

Referenced by preread().

+ Here is the caller graph for this function:

◆ bufferPtr() [2/2]

char * QCborStreamReaderPrivate::bufferPtr ( )
inline

Definition at line 574 of file qcborstreamreader.cpp.

◆ ensureStringIteration() [1/2]

bool QCborStreamReaderPrivate::ensureStringIteration ( )

Definition at line 699 of file qcborstreamreader.cpp.

◆ ensureStringIteration() [2/2]

bool QCborStreamReaderPrivate::ensureStringIteration ( )

◆ handleError() [1/2]

void QCborStreamReaderPrivate::handleError ( CborError err)
inlinenoexcept

Definition at line 604 of file qcborstreamreader.cpp.

References corrupt.

◆ handleError() [2/2]

void QCborStreamReaderPrivate::handleError ( CborError err)
inlinenoexcept

Definition at line 604 of file qcborstreamreader.cpp.

◆ initDecoder() [1/2]

void QCborStreamReaderPrivate::initDecoder ( )
inline

Definition at line 558 of file qcborstreamreader.cpp.

References device, and preread().

Referenced by QCborStreamReaderPrivate(), and setDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initDecoder() [2/2]

void QCborStreamReaderPrivate::initDecoder ( )
inline

Definition at line 558 of file qcborstreamreader.cpp.

◆ preread() [1/2]

void QCborStreamReaderPrivate::preread ( )
inline

Definition at line 580 of file qcborstreamreader.cpp.

References bufferPtr(), device, and IdealIoBufferSize.

Referenced by initDecoder(), and qt_cbor_decoder_advance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ preread() [2/2]

void QCborStreamReaderPrivate::preread ( )
inline

Definition at line 580 of file qcborstreamreader.cpp.

◆ readFullString() [1/2]

bool QCborStreamReaderPrivate::readFullString ( ReadStringChunk params)

Definition at line 1428 of file qcborstreamreader.cpp.

◆ readFullString() [2/2]

bool QCborStreamReaderPrivate::readFullString ( ReadStringChunk params)

◆ readStringChunk() [1/2]

Q_NEVER_INLINE QCborStreamReader::StringResult< qsizetype > QCborStreamReaderPrivate::readStringChunk ( ReadStringChunk params)

Definition at line 1622 of file qcborstreamreader.cpp.

◆ readStringChunk() [2/2]

QCborStreamReader::StringResult< qsizetype > QCborStreamReaderPrivate::readStringChunk ( ReadStringChunk params)

◆ readStringChunk_byte() [1/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_byte ( ReadStringChunk params,
qsizetype len )
inline

Definition at line 1723 of file qcborstreamreader.cpp.

References device, QCborStreamReaderPrivate::ReadStringChunk::isPlainPointer(), and QCborStreamReaderPrivate::ReadStringChunk::isString().

+ Here is the call graph for this function:

◆ readStringChunk_byte() [2/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_byte ( ReadStringChunk params,
qsizetype len )

◆ readStringChunk_unicode() [1/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_unicode ( ReadStringChunk params,
qsizetype utf8len )
inline

Definition at line 1782 of file qcborstreamreader.cpp.

References device, and QCborStreamReaderPrivate::ReadStringChunk::isString().

+ Here is the call graph for this function:

◆ readStringChunk_unicode() [2/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_unicode ( ReadStringChunk params,
qsizetype utf8len )

◆ readStringChunk_utf8() [1/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_utf8 ( ReadStringChunk params,
qsizetype utf8len )
inline

Definition at line 1839 of file qcborstreamreader.cpp.

◆ readStringChunk_utf8() [2/2]

qsizetype QCborStreamReaderPrivate::readStringChunk_utf8 ( ReadStringChunk params,
qsizetype utf8len )

◆ setDevice() [1/2]

void QCborStreamReaderPrivate::setDevice ( QIODevice * dev)
inline

Definition at line 551 of file qcborstreamreader.cpp.

References device, and initDecoder().

Referenced by QCborStreamReaderPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDevice() [2/2]

void QCborStreamReaderPrivate::setDevice ( QIODevice * dev)
inline

Definition at line 551 of file qcborstreamreader.cpp.

Member Data Documentation

◆ buffer

◆ bufferStart

QByteArray::size_type QCborStreamReaderPrivate::bufferStart = 0

Definition at line 533 of file qcborstreamreader.cpp.

◆ containerStack

QStack< CborValue > QCborStreamReaderPrivate::containerStack

Definition at line 527 of file qcborstreamreader.cpp.

◆ corrupt

bool QCborStreamReaderPrivate::corrupt = false

Definition at line 534 of file qcborstreamreader.cpp.

Referenced by handleError().

◆ currentElement

CborValue QCborStreamReaderPrivate::currentElement

Definition at line 530 of file qcborstreamreader.cpp.

◆ device

◆ lastError

QCborError QCborStreamReaderPrivate::lastError = {}

Definition at line 531 of file qcborstreamreader.cpp.

◆ parser

CborParser QCborStreamReaderPrivate::parser

Definition at line 529 of file qcborstreamreader.cpp.


The documentation for this class was generated from the following file: