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
QByteDataBuffer Class Reference

#include <qbytedatabuffer_p.h>

Collaboration diagram for QByteDataBuffer:

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
QByteArrayoperator[] (qsizetype i)
bool canReadLine () const

Static Public Member Functions

static void popFront (QByteArray &ba, qint64 n)

Detailed Description

Definition at line 30 of file qbytedatabuffer_p.h.

Member Function Documentation

◆ advanceReadPointer()

void QByteDataBuffer::advanceReadPointer ( qint64 distance)
inline

Advances the read pointer by distance.

See also
readPointer

Definition at line 197 of file qbytedatabuffer_p.h.

◆ append() [1/4]

void QByteDataBuffer::append ( const QByteArray & bd)
inline

Definition at line 76 of file qbytedatabuffer_p.h.

◆ append() [2/4]

void QByteDataBuffer::append ( const QByteDataBuffer & other)
inline

Definition at line 50 of file qbytedatabuffer_p.h.

◆ append() [3/4]

void QByteDataBuffer::append ( QByteArray && bd)
inline

Definition at line 81 of file qbytedatabuffer_p.h.

◆ append() [4/4]

void QByteDataBuffer::append ( QByteDataBuffer && other)
inline

Definition at line 62 of file qbytedatabuffer_p.h.

◆ bufferCount()

qsizetype QByteDataBuffer::bufferCount ( ) const
inline

Definition at line 244 of file qbytedatabuffer_p.h.

◆ byteAmount()

qint64 QByteDataBuffer::byteAmount ( ) const
inline

Definition at line 238 of file qbytedatabuffer_p.h.

◆ canReadLine()

bool QByteDataBuffer::canReadLine ( ) const
inline

Definition at line 270 of file qbytedatabuffer_p.h.

◆ clear()

void QByteDataBuffer::clear ( )
inline

Definition at line 230 of file qbytedatabuffer_p.h.

◆ getChar()

char QByteDataBuffer::getChar ( )
inline

Definition at line 221 of file qbytedatabuffer_p.h.

◆ isEmpty()

bool QByteDataBuffer::isEmpty ( ) const
inline

Definition at line 249 of file qbytedatabuffer_p.h.

◆ operator[]()

QByteArray & QByteDataBuffer::operator[] ( qsizetype i)
inline

Definition at line 262 of file qbytedatabuffer_p.h.

◆ popFront()

void QByteDataBuffer::popFront ( QByteArray & ba,
qint64 n )
inlinestatic

Definition at line 37 of file qbytedatabuffer_p.h.

◆ prepend() [1/2]

void QByteDataBuffer::prepend ( const QByteArray & bd)
inline

Definition at line 90 of file qbytedatabuffer_p.h.

◆ prepend() [2/2]

void QByteDataBuffer::prepend ( QByteArray && bd)
inline

Definition at line 95 of file qbytedatabuffer_p.h.

◆ read() [1/3]

QByteArray QByteDataBuffer::read ( )
inline

Definition at line 108 of file qbytedatabuffer_p.h.

◆ read() [2/3]

qint64 QByteDataBuffer::read ( char * dst,
qint64 amount )
inline

Definition at line 143 of file qbytedatabuffer_p.h.

◆ read() [3/3]

QByteArray QByteDataBuffer::read ( qint64 amount)
inline

Definition at line 125 of file qbytedatabuffer_p.h.

◆ readAll()

QByteArray QByteDataBuffer::readAll ( )
inline

Definition at line 118 of file qbytedatabuffer_p.h.

◆ readPointer()

QByteArrayView QByteDataBuffer::readPointer ( ) const
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.

See also
advanceReadPointer

Definition at line 183 of file qbytedatabuffer_p.h.

◆ sizeNextBlock()

qint64 QByteDataBuffer::sizeNextBlock ( ) const
inline

Definition at line 254 of file qbytedatabuffer_p.h.

◆ squeezeFirst()

void QByteDataBuffer::squeezeFirst ( )
inline

Definition at line 42 of file qbytedatabuffer_p.h.


The documentation for this class was generated from the following file: