QtBase  v6.3.1
Classes | Namespaces | Macros | Typedefs | Functions
qbytearray.h File Reference
#include <QtCore/qrefcount.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qarraydata.h>
#include <QtCore/qarraydatapointer.h>
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qbytearrayalgorithms.h>
#include <QtCore/qbytearrayview.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <string>
#include <iterator>
Include dependency graph for qbytearray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QByteArray
 The QByteArray class provides an array of bytes. More...
 
class  QByteArray::FromBase64Result
 The QByteArray::FromBase64Result class holds the result of a call to QByteArray::fromBase64Encoding. More...
 

Namespaces

 QtLiterals
 

Macros

#define QT5_NULL_STRINGS   1
 
#define QByteArrayLiteral(str)    (QByteArray(QByteArrayData(nullptr, const_cast<char *>(str), sizeof(str) - 1))) \
 

Typedefs

using QByteArrayData = QArrayDataPointer< char >
 

Macro Definition Documentation

◆ QByteArrayLiteral

#define QByteArrayLiteral (   str)     (QByteArray(QByteArrayData(nullptr, const_cast<char *>(str), sizeof(str) - 1))) \

Definition at line 80 of file qbytearray.h.

◆ QT5_NULL_STRINGS

#define QT5_NULL_STRINGS   1

Definition at line 61 of file qbytearray.h.

Typedef Documentation

◆ QByteArrayData

Definition at line 78 of file qbytearray.h.

Function Documentation

◆ erase()

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

Definition at line 670 of file qbytearray.h.

Here is the caller graph for this function:

◆ erase_if()

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

Definition at line 676 of file qbytearray.h.

◆ operator+() [1/5]

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

Definition at line 583 of file qbytearray.h.

◆ operator+() [2/5]

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

Definition at line 581 of file qbytearray.h.

◆ operator+() [3/5]

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

Definition at line 579 of file qbytearray.h.

◆ operator+() [4/5]

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

Definition at line 577 of file qbytearray.h.

◆ operator+() [5/5]

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

Definition at line 575 of file qbytearray.h.

◆ operator<<()

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

◆ operator>>()

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

◆ qCompress() [1/2]

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

Definition at line 616 of file qbytearray.h.

◆ qCompress() [2/2]

Q_CORE_EXPORT QByteArray qCompress ( const uchar data,
qsizetype  nbytes,
int  compressionLevel = -1 
)
related
Here is the caller graph for this function:

◆ qHash()

Q_CORE_EXPORT Q_DECL_PURE_FUNCTION size_t qHash ( const QByteArray::FromBase64Result key,
size_t  seed = 0 
)
related

◆ qUncompress() [1/2]

QByteArray qUncompress ( const QByteArray data)
related

Definition at line 618 of file qbytearray.h.

◆ qUncompress() [2/2]

Q_CORE_EXPORT QByteArray qUncompress ( const uchar data,
qsizetype  nbytes 
)
related
Here is the caller graph for this function: