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
qbytearray.h File Reference

(cf2f10268461d7e0dbd8331fbd1c83bf66c4b8c6)

#include <QtCore/qrefcount.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qarraydata.h>
#include <QtCore/qarraydatapointer.h>
#include <QtCore/qcompare.h>
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qbytearrayalgorithms.h>
#include <QtCore/qbytearrayview.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <iterator>
+ Include dependency graph for qbytearray.h:

Go to the source code of this file.

Classes

class  QByteArray
 \inmodule QtCore More...
 
class  QByteArray::FromBase64Result
 \inmodule QtCore More...
 

Namespaces

namespace  Qt
 
namespace  Qt::Literals
 
namespace  Qt::Literals::StringLiterals
 
namespace  QtLiterals
 

Macros

#define QT5_NULL_STRINGS   1
 
#define QByteArrayLiteral(str)
 

Typedefs

using QByteArrayData = QArrayDataPointer<char>
 

Functions

QByteArray operator+ (const QByteArray &a1, const QByteArray &a2)
 
QByteArray operator+ (QByteArray &&lhs, const QByteArray &rhs)
 
QByteArray operator+ (const QByteArray &a1, const char *a2)
 
QByteArray operator+ (QByteArray &&lhs, const char *rhs)
 
QByteArray operator+ (const QByteArray &a1, char a2)
 
QByteArray operator+ (QByteArray &&lhs, char rhs)
 
QByteArray operator+ (const char *a1, const QByteArray &a2)
 
QByteArray operator+ (char a1, const QByteArray &a2)
 
Q_WEAK_OVERLOAD QByteArray operator+ (const QByteArray &lhs, QByteArrayView rhs)
 
Q_WEAK_OVERLOAD QByteArray operator+ (QByteArrayView lhs, const QByteArray &rhs)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &out, const QByteArray &ba)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &in, QByteArray &ba)
 
Q_CORE_EXPORT QByteArray qCompress (const uchar *data, qsizetype nbytes, int compressionLevel=-1)
 
Q_CORE_EXPORT QByteArray qUncompress (const uchar *data, qsizetype nbytes)
 
QByteArray qCompress (const QByteArray &data, int compressionLevel=-1)
 
QByteArray qUncompress (const QByteArray &data)
 
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION size_t qHash (const QByteArray::FromBase64Result &key, size_t seed=0) noexcept
 \qhashold{QByteArray::FromBase64Result}
 
template<typename T>
qsizetype erase (QByteArray &ba, const T &t)
 
template<typename Predicate>
qsizetype erase_if (QByteArray &ba, Predicate pred)
 
QByteArray Qt::Literals::StringLiterals::operator""_ba (const char *str, size_t size) noexcept
 

Macro Definition Documentation

◆ QByteArrayLiteral

#define QByteArrayLiteral ( str)
Value:
(QByteArray(QByteArrayData(nullptr, const_cast<char *>(str), sizeof(str) - 1))) \
QString str
[2]
QArrayDataPointer< char > QByteArrayData
Definition qbytearray.h:50
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()

Definition at line 52 of file qbytearray.h.

◆ QT5_NULL_STRINGS

#define QT5_NULL_STRINGS   1

Definition at line 25 of file qbytearray.h.

Typedef Documentation

◆ QByteArrayData

Definition at line 50 of file qbytearray.h.

Function Documentation

◆ erase()

template<typename T>
qsizetype erase ( QByteArray & ba,
const T & t )

Definition at line 830 of file qbytearray.h.

◆ erase_if()

template<typename Predicate>
qsizetype erase_if ( QByteArray & ba,
Predicate pred )

Definition at line 836 of file qbytearray.h.

◆ operator+() [1/10]

QByteArray operator+ ( char a1,
const QByteArray & a2 )
related

Definition at line 719 of file qbytearray.h.

◆ operator+() [2/10]

QByteArray operator+ ( const char * a1,
const QByteArray & a2 )
related

Definition at line 717 of file qbytearray.h.

◆ operator+() [3/10]

QByteArray operator+ ( const QByteArray & a1,
char a2 )
related

Definition at line 713 of file qbytearray.h.

◆ operator+() [4/10]

QByteArray operator+ ( const QByteArray & a1,
const char * a2 )
related

Definition at line 709 of file qbytearray.h.

◆ operator+() [5/10]

QByteArray operator+ ( const QByteArray & a1,
const QByteArray & a2 )
related

Definition at line 705 of file qbytearray.h.

◆ operator+() [6/10]

Q_WEAK_OVERLOAD QByteArray operator+ ( const QByteArray & lhs,
QByteArrayView rhs )
inline

Definition at line 722 of file qbytearray.h.

◆ operator+() [7/10]

QByteArray operator+ ( QByteArray && lhs,
char rhs )
inline

Definition at line 715 of file qbytearray.h.

◆ operator+() [8/10]

QByteArray operator+ ( QByteArray && lhs,
const char * rhs )
inline

Definition at line 711 of file qbytearray.h.

◆ operator+() [9/10]

QByteArray operator+ ( QByteArray && lhs,
const QByteArray & rhs )
inline

Definition at line 707 of file qbytearray.h.

◆ operator+() [10/10]

Q_WEAK_OVERLOAD QByteArray operator+ ( QByteArrayView lhs,
const QByteArray & rhs )
related

Definition at line 728 of file qbytearray.h.

◆ operator<<()

Q_CORE_EXPORT QDataStream & operator<< ( QDataStream & out,
const QByteArray & ba )
related

◆ operator>>()

Q_CORE_EXPORT QDataStream & operator>> ( QDataStream & in,
QByteArray & ba )
related

◆ qCompress() [1/2]

QByteArray qCompress ( const QByteArray & data,
int compressionLevel = -1 )
related

Definition at line 776 of file qbytearray.h.

◆ qCompress() [2/2]

QByteArray qCompress ( const uchar * data,
qsizetype nbytes,
int compressionLevel = -1 )
related

Definition at line 693 of file qbytearray.cpp.

References Compression.

◆ qHash()

size_t qHash ( const QByteArray::FromBase64Result & key,
size_t seed = 0 )
noexcept

\qhashold{QByteArray::FromBase64Result}

Definition at line 5177 of file qbytearray.cpp.

◆ qUncompress() [1/2]

QByteArray qUncompress ( const QByteArray & data)
related

Definition at line 778 of file qbytearray.h.

◆ qUncompress() [2/2]

Q_CORE_EXPORT QByteArray qUncompress ( const uchar * data,
qsizetype nbytes )