Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCborStreamReaderPrivate::ReadStringChunk Struct Reference
+ Collaboration diagram for QCborStreamReaderPrivate::ReadStringChunk:

Public Types

enum  Type { ByteArray = -1 , String = -3 , Utf8String = -5 }
 

Public Member Functions

 ReadStringChunk (char *ptr, qsizetype maxlen)
 
 ReadStringChunk (QByteArray *array, Type type=ByteArray)
 
 ReadStringChunk (QString *str)
 
bool isString () const
 
bool isUtf8String () const
 
bool isByteArray () const
 
bool isPlainPointer () const
 

Public Attributes

union { 
 
   char *   ptr 
 
   QByteArray *   array 
 
   QString *   string 
 
};  
 
qsizetype maxlen_or_type
 

Detailed Description

Definition at line 615 of file qcborstreamreader.cpp.

Member Enumeration Documentation

◆ Type

Enumerator
ByteArray 
String 
Utf8String 

Definition at line 621 of file qcborstreamreader.cpp.

Constructor & Destructor Documentation

◆ ReadStringChunk() [1/3]

QCborStreamReaderPrivate::ReadStringChunk::ReadStringChunk ( char * ptr,
qsizetype maxlen )
inline

Definition at line 624 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [2/3]

QCborStreamReaderPrivate::ReadStringChunk::ReadStringChunk ( QByteArray * array,
Type type = ByteArray )
inline

Definition at line 625 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [3/3]

QCborStreamReaderPrivate::ReadStringChunk::ReadStringChunk ( QString * str)
inline

Definition at line 626 of file qcborstreamreader.cpp.

Member Function Documentation

◆ isByteArray()

bool QCborStreamReaderPrivate::ReadStringChunk::isByteArray ( ) const
inline

Definition at line 629 of file qcborstreamreader.cpp.

References ByteArray, and maxlen_or_type.

◆ isPlainPointer()

bool QCborStreamReaderPrivate::ReadStringChunk::isPlainPointer ( ) const
inline

Definition at line 630 of file qcborstreamreader.cpp.

References maxlen_or_type.

◆ isString()

bool QCborStreamReaderPrivate::ReadStringChunk::isString ( ) const
inline

Definition at line 627 of file qcborstreamreader.cpp.

References maxlen_or_type, and String.

◆ isUtf8String()

bool QCborStreamReaderPrivate::ReadStringChunk::isUtf8String ( ) const
inline

Definition at line 628 of file qcborstreamreader.cpp.

References maxlen_or_type, and Utf8String.

Member Data Documentation

◆ [union]

◆ array

QByteArray* QCborStreamReaderPrivate::ReadStringChunk::array

Definition at line 618 of file qcborstreamreader.cpp.

◆ maxlen_or_type

qsizetype QCborStreamReaderPrivate::ReadStringChunk::maxlen_or_type

Definition at line 622 of file qcborstreamreader.cpp.

Referenced by isByteArray(), isPlainPointer(), isString(), and isUtf8String().

◆ ptr

char* QCborStreamReaderPrivate::ReadStringChunk::ptr

Definition at line 617 of file qcborstreamreader.cpp.

◆ string

QString* QCborStreamReaderPrivate::ReadStringChunk::string

Definition at line 619 of file qcborstreamreader.cpp.


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