IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QByteArrayList Class

The https:// class provides a list of byte arrays.

This class was introduced in Qt 5.4.

All functions in this class are https://.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QByteArrayList Class▲

  • Header: QByteArrayList

  • Since: Qt 5.4

  • qmake: QT += core

  • Group: QByteArrayList is part of tools, https://, string-processing

Detailed Description▲

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

All of https://'s functionality also applies to https://. For example, you can use https:// 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 https://. In addition, https:// provides several https://() methods for concatenating the list into a single QByteArray.

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

See Also▲

See also https://, https://

Member Function Documentation▲

 

[since 5.13] int QByteArrayList::indexOf(const char *needle, int from = 0) const▲

Returns the index position of the first occurrence of needle in the list, searching forward from index position from. Returns -1 if no item matched.

needle must be NUL-terminated.

This overload doesn't require creating a QByteArray, thus saving a memory allocation and some CPU time.

This is an overloaded function.

This function was introduced in Qt 5.13.

QByteArray QByteArrayList::join() const▲

Joins all the byte arrays into a single byte array.

QByteArray QByteArrayList::join(const QByteArray &separator) const▲

Joins all the byte arrays into a single byte array with each element separated by the given separator.

QByteArray QByteArrayList::join(char separator) const▲

Joins all the byte arrays into a single byte array with each element separated by the given separator.

Related Non-Members▲

 

QByteArrayListIterator▲

The QByteArrayListIterator type definition provides a Java-style const iterator for https://.

https:// provides both https:// and https://. The Java-style const iterator is simply a type definition for QListIterator<QByteArray>.

See Also▲

See also https://, QByteArrayList::const_iterator

QMutableByteArrayListIterator▲

The https:// type definition provides a Java-style non-const iterator for https://.

https:// provides both https:// and https://. The Java-style non-const iterator is simply a type definition for QMutableListIterator<QByteArray>.

See Also▲

See also https://, QByteArrayList::iterator

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.