Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
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
 \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)    (QByteArray(QByteArrayData(nullptr, const_cast<char *>(str), sizeof(str) - 1))) \
 

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_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QByteArray &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QByteArray &)
 
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
 
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)     (QByteArray(QByteArrayData(nullptr, const_cast<char *>(str), sizeof(str) - 1))) \

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 
)
related

Definition at line 695 of file qbytearray.h.

Referenced by deduplicate(), QLCDNumberPrivate::drawDigit(), QLCDNumberPrivate::drawSegment(), QtMetaContainerPrivate::QMetaContainerForContainer< C >::getEraseAtIteratorFn(), QQmlJSTypeResolver::merge(), QCborMap::remove(), QCborMap::remove(), QCborMap::remove(), and QCborMap::remove().

+ Here is the caller graph for this function:

◆ erase_if()

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

Definition at line 701 of file qbytearray.h.

Referenced by QAndroidFormatInfo::QAndroidFormatInfo(), QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscovered(), QQuick3DPhysicsHeightFieldManager::releaseHeightField(), QLibraryStore::releaseLibrary(), and QQuick3DPhysicsMeshManager::releaseMesh().

+ Here is the caller graph for this function:

◆ operator+() [1/8]

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

Definition at line 607 of file qbytearray.h.

◆ operator+() [2/8]

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

Definition at line 605 of file qbytearray.h.

◆ operator+() [3/8]

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

Definition at line 601 of file qbytearray.h.

◆ operator+() [4/8]

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

Definition at line 597 of file qbytearray.h.

◆ operator+() [5/8]

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

Definition at line 593 of file qbytearray.h.

◆ operator+() [6/8]

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

Definition at line 603 of file qbytearray.h.

◆ operator+() [7/8]

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

Definition at line 599 of file qbytearray.h.

◆ operator+() [8/8]

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

Definition at line 595 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 641 of file qbytearray.h.

◆ qCompress() [2/2]

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

Definition at line 664 of file qbytearray.cpp.

Referenced by QByteArray::qCompress(), QSvgIconEngine::read(), QShader::serialized(), QSvgIconEngine::write(), QCacheItem::writeCompressedData(), and RCCFileInfo::writeDataBlob().

+ 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 643 of file qbytearray.h.

◆ qUncompress() [2/2]

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

Referenced by QShader::fromSerialized(), maybeUncompress(), QByteArray::qUncompress(), QSvgIconEngine::read(), and QCacheItem::read().

+ Here is the caller graph for this function: