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::ReadStringChunk Struct Reference
Collaboration diagram for QCborStreamReaderPrivate::ReadStringChunk:

Public Types

enum  Type {
  ByteArray = -1 , String = -3 , Utf8String = -5 , ByteArray = -1 ,
  String = -3 , Utf8String = -5
}
enum  Type {
  ByteArray = -1 , String = -3 , Utf8String = -5 , 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
 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 616 of file qcborstreamreader.cpp.

Member Enumeration Documentation

◆ Type [1/2]

Enumerator
ByteArray 
String 
Utf8String 
ByteArray 
String 
Utf8String 

Definition at line 622 of file qcborstreamreader.cpp.

◆ Type [2/2]

Enumerator
ByteArray 
String 
Utf8String 
ByteArray 
String 
Utf8String 

Definition at line 622 of file qcborstreamreader.cpp.

Constructor & Destructor Documentation

◆ ReadStringChunk() [1/6]

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

Definition at line 625 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [2/6]

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

Definition at line 626 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [3/6]

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

Definition at line 627 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [4/6]

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

Definition at line 625 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [5/6]

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

Definition at line 626 of file qcborstreamreader.cpp.

◆ ReadStringChunk() [6/6]

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

Definition at line 627 of file qcborstreamreader.cpp.

Member Function Documentation

◆ isByteArray() [1/2]

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

Definition at line 630 of file qcborstreamreader.cpp.

◆ isByteArray() [2/2]

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

Definition at line 630 of file qcborstreamreader.cpp.

◆ isPlainPointer() [1/2]

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

Definition at line 631 of file qcborstreamreader.cpp.

Referenced by QCborStreamReaderPrivate::readStringChunk_byte().

Here is the caller graph for this function:

◆ isPlainPointer() [2/2]

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

Definition at line 631 of file qcborstreamreader.cpp.

◆ isString() [1/2]

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

Definition at line 628 of file qcborstreamreader.cpp.

Referenced by QCborStreamReaderPrivate::readStringChunk_byte(), and QCborStreamReaderPrivate::readStringChunk_unicode().

Here is the caller graph for this function:

◆ isString() [2/2]

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

Definition at line 628 of file qcborstreamreader.cpp.

◆ isUtf8String() [1/2]

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

Definition at line 629 of file qcborstreamreader.cpp.

◆ isUtf8String() [2/2]

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

Definition at line 629 of file qcborstreamreader.cpp.

Member Data Documentation

◆ [union]

◆ array

QByteArray* QCborStreamReaderPrivate::ReadStringChunk::array

Definition at line 619 of file qcborstreamreader.cpp.

◆ maxlen_or_type

qsizetype QCborStreamReaderPrivate::ReadStringChunk::maxlen_or_type

Definition at line 623 of file qcborstreamreader.cpp.

◆ ptr

char* QCborStreamReaderPrivate::ReadStringChunk::ptr

Definition at line 618 of file qcborstreamreader.cpp.

◆ string

QString* QCborStreamReaderPrivate::ReadStringChunk::string

Definition at line 620 of file qcborstreamreader.cpp.


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