![]() |
Qt 6.x
The Qt SDK
|
#include <qbytedata_p.h>
Public Member Functions | |
void | squeezeFirst () |
void | append (const QByteDataBuffer &other) |
void | append (QByteDataBuffer &&other) |
void | append (const QByteArray &bd) |
void | append (QByteArray &&bd) |
void | prepend (const QByteArray &bd) |
void | prepend (QByteArray &&bd) |
QByteArray | read () |
QByteArray | readAll () |
QByteArray | read (qint64 amount) |
qint64 | read (char *dst, qint64 amount) |
QByteArrayView | readPointer () const |
void | advanceReadPointer (qint64 distance) |
char | getChar () |
void | clear () |
qint64 | byteAmount () const |
qsizetype | bufferCount () const |
bool | isEmpty () const |
qint64 | sizeNextBlock () const |
QByteArray & | operator[] (qsizetype i) |
bool | canReadLine () const |
Static Public Member Functions | |
static void | popFront (QByteArray &ba, qint64 n) |
Definition at line 28 of file qbytedata_p.h.
Advances the read pointer by distance.
Definition at line 195 of file qbytedata_p.h.
References isEmpty().
|
inline |
Definition at line 74 of file qbytedata_p.h.
References append().
|
inline |
Definition at line 48 of file qbytedata_p.h.
References bufferCount(), other(), and popFront().
Referenced by append(), QDecompressHelper::feed(), QDecompressHelper::feed(), QDecompressHelper::feed(), and QHttpNetworkReplyPrivate::readBodyFast().
|
inline |
Definition at line 79 of file qbytedata_p.h.
|
inline |
Definition at line 60 of file qbytedata_p.h.
References bufferCount(), other(), and popFront().
|
inline |
Definition at line 242 of file qbytedata_p.h.
Referenced by append(), append(), and QDecompressHelper::feed().
|
inline |
Definition at line 236 of file qbytedata_p.h.
Referenced by isEmpty(), read(), read(), readAll(), and QDecompressHelper::setCountingBytesEnabled().
|
inline |
Definition at line 268 of file qbytedata_p.h.
References i.
|
inline |
Definition at line 228 of file qbytedata_p.h.
Referenced by QDecompressHelper::clear(), and QHttpNetworkReplyPrivate::eraseData().
|
inline |
Definition at line 219 of file qbytedata_p.h.
References isEmpty(), Q_ASSERT_X, and read().
|
inline |
Definition at line 247 of file qbytedata_p.h.
References byteAmount().
Referenced by QHttpProtocolHandler::_q_receiveReply(), advanceReadPointer(), getChar(), QDecompressHelper::hasData(), read(), QDecompressHelper::read(), and readPointer().
|
inline |
Definition at line 260 of file qbytedata_p.h.
References i, and squeezeFirst().
|
inlinestatic |
Definition at line 35 of file qbytedata_p.h.
References ba, QByteArray::constData(), and QByteArray::size().
Referenced by append(), append(), and squeezeFirst().
|
inline |
Definition at line 88 of file qbytedata_p.h.
References prepend().
Referenced by prepend().
|
inline |
Definition at line 93 of file qbytedata_p.h.
References squeezeFirst().
|
inline |
Definition at line 106 of file qbytedata_p.h.
References isEmpty(), Q_ASSERT, and squeezeFirst().
Referenced by getChar(), QDecompressHelper::read(), read(), and readAll().
Definition at line 141 of file qbytedata_p.h.
References byteAmount(), QByteArray::first(), qMin(), and QByteArray::size().
|
inline |
Definition at line 123 of file qbytedata_p.h.
References byteAmount(), QByteArray::data(), qBadAlloc(), qMin(), read(), QByteArray::resize(), and QByteArray::size().
|
inline |
Definition at line 116 of file qbytedata_p.h.
References byteAmount(), and read().
|
inline |
Returns a view into the first QByteArray contained inside, ignoring any already read data. Call advanceReadPointer() to advance the view forward. When a QByteArray is exhausted the view returned by this function will view into another QByteArray if any. Returns a default constructed view if no data is available.
Definition at line 181 of file qbytedata_p.h.
References QByteArrayView::constData(), QByteArrayView::first(), and isEmpty().
|
inline |
Definition at line 252 of file qbytedata_p.h.
|
inline |
Definition at line 40 of file qbytedata_p.h.
References popFront().
Referenced by operator[](), prepend(), and read().