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
QByteArrayList Class Reference

\inmodule QtCore More...

+ Collaboration diagram for QByteArrayList:

Related Symbols

(Note that these are not member symbols.)

 QT_BEGIN_NAMESPACEQByteArrayListIterator
 The QByteArrayListIterator type definition provides a Java-style const iterator for QByteArrayList.
 
 QMutableByteArrayListIterator
 The QByteArrayListIterator type definition provides a Java-style non-const iterator for QByteArrayList.
 

Detailed Description

\inmodule QtCore

Since
5.4

The QByteArrayList class provides a list of byte arrays.

\reentrant

QByteArrayList is actually just a QList<QByteArray>. It is documented as a full class just for simplicity of documenting the member methods that exist only in QList<QByteArray>.

All of QList's functionality also applies to QByteArrayList. For example, you can use isEmpty() to test whether the list is empty, and you can call functions like append(), prepend(), insert(), replace(), removeAll(), removeAt(), removeFirst(), removeLast(), and removeOne() to modify a QByteArrayList. In addition, QByteArrayList provides several join() methods for concatenating the list into a single QByteArray.

The purpose of QByteArrayList is quite different from that of QStringList. Whereas QStringList has many methods for manipulation of elements within the list, QByteArrayList does not. Normally, QStringList should be used whenever working with a list of printable strings. QByteArrayList should be used to handle and efficiently join large blobs of binary data, as when sequentially receiving serialized data through a QIODevice.

See also
QByteArray, QStringList

Friends And Related Symbol Documentation

◆ QMutableByteArrayListIterator()

The QByteArrayListIterator type definition provides a Java-style non-const iterator for QByteArrayList.

QByteArrayList provides both \l{Java-style iterators} and \l{STL-style iterators}. The Java-style non-const iterator is simply a type definition for QMutableListIterator<QByteArray>.

See also
QByteArrayListIterator, QByteArrayList::iterator

Definition at line 19 of file qbytearraylist.h.

References QtPrivate::QByteArrayList_join(), and sep.

+ Here is the call graph for this function:

◆ QT_BEGIN_NAMESPACEQByteArrayListIterator()

QT_BEGIN_NAMESPACEQByteArrayListIterator
related

The QByteArrayListIterator type definition provides a Java-style const iterator for QByteArrayList.

QByteArrayList provides both \l{Java-style iterators} and \l{STL-style iterators}. The Java-style const iterator is simply a type definition for QListIterator<QByteArray>.

See also
QMutableByteArrayListIterator, QByteArrayList::const_iterator

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