6.0.0-rc4Source

QByteArrayList Struct

The QByteArrayList class provides a list of byte arrays. More…

Header#include <QByteArrayList>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Functions

QByteArrayjoin() const
QByteArrayjoin(QByteArrayView sep) const
QByteArrayjoin(char sep) const

Detailed Description

QByteArrayList is another name of QList<QByteArray>, with join() added to what QList has. Lists are usually produced by QByteArray::split() and combined back with join():

QByteArrayList fields = QByteArray("a,b,c").split(',');
fields << "d";
QByteArray csv = fields.join(',');   // "a,b,c,d"

See also QByteArray, QList and QStringList.

Differences from Qt

None.

Member Function Documentation

QByteArray QByteArrayList::join() const

Returns the byte arrays of the list joined into one, with nothing between them.

QByteArray QByteArrayList::join(QByteArrayView sep) const

This is an overloaded function.

Returns the byte arrays of the list joined into one, with the bytes of sep between each two of them.

QByteArray QByteArrayList::join(char sep) const

This is an overloaded function.

Returns the byte arrays of the list joined into one, with the byte sep between each two of them.