Qt 4.8
|
#include <qringbuffer_p.h>
Public Functions | |
void | append (const QByteArray &qba) |
bool | canReadLine () const |
void | chop (int bytes) |
void | clear () |
const T & | dequeue () |
void | enqueue (const T &x) |
void | free (int bytes) |
int | getChar () |
const T & | head () const |
int | indexOf (char c) const |
int | indexOf (char c, int maxLength) const |
bool | isEmpty () const |
bool | isEmpty () const |
int | nextDataBlockSize () const |
QByteArray | peek (int maxLength) const |
void | putChar (char c) |
QRingBuffer (int growth=4096) | |
QRingBuffer () | |
int | read (char *data, int maxLength) |
QByteArray | read (int maxLength) |
QByteArray | read () |
QByteArray | readAll () |
int | readLine (char *data, int maxLength) |
const char * | readPointer () const |
const char * | readPointerAtPosition (qint64 pos, qint64 &length) const |
bool | reallocate (int capacity) |
char * | reserve (int bytes) |
int | size () const |
int | skip (int length) |
void | truncate (int pos) |
void | ungetChar (char c) |
~QRingBuffer () | |
Properties | |
int | basicBlockSize |
QList< QByteArray > | buffers |
int | bufferSize |
int | head |
T * | m_array |
int | m_capacity |
int | m_head |
int | m_size |
int | tail |
int | tailBuffer |
Definition at line 61 of file qringbuffer_p.h.
|
inline |
Definition at line 64 of file qringbuffer_p.h.
|
inline |
Definition at line 1246 of file qtriangulator.cpp.
|
inline |
Definition at line 1247 of file qtriangulator.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 197 of file qringbuffer_p.h.
Referenced by QNetworkReplyImplPrivate::_q_bufferOutgoingData(), QAbstractSocketPrivate::readFromSocket(), and QRingBuffer< T >::truncate().
|
inline |
Definition at line 260 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::chop(), QSslSocketPrivate::createPlainSocket(), QRingBuffer< T >::free(), QSslSocketPrivate::init(), and QRingBuffer< T >::QRingBuffer().
|
inline |
Definition at line 1285 of file qtriangulator.cpp.
|
inline |
Definition at line 1298 of file qtriangulator.cpp.
|
inline |
Definition at line 123 of file qringbuffer_p.h.
Referenced by _qfile_writeData(), QAbstractSocketPrivate::flush(), QRingBuffer< T >::getChar(), QRingBuffer< T >::read(), QProcess::readData(), QRingBuffer< T >::readLine(), and QSslSocketBackendPrivate::transmit().
|
inline |
|
inline |
Definition at line 1249 of file qtriangulator.cpp.
Referenced by QRingBuffer< T >::chop(), QRingBuffer< T >::clear(), QRingBuffer< T >::free(), QRingBuffer< T >::indexOf(), QRingBuffer< T >::nextDataBlockSize(), QRingBuffer< T >::peek(), QRingBuffer< T >::read(), QRingBuffer< T >::readPointer(), QRingBuffer< T >::readPointerAtPosition(), and QRingBuffer< T >::ungetChar().
|
inline |
Definition at line 270 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::canReadLine(), and QRingBuffer< T >::readLine().
|
inline |
Definition at line 290 of file qringbuffer_p.h.
|
inline |
Definition at line 227 of file qringbuffer_p.h.
Referenced by QSslSocketPrivate::_q_bytesWrittenSlot(), QSslSocketPrivate::_q_flushWriteBuffer(), QProcess::atEnd(), QAbstractSocketPrivate::canWriteNotification(), QRingBuffer< T >::chop(), QAbstractSocketPrivate::flush(), QRingBuffer< T >::free(), QRingBuffer< T >::getChar(), QProcessPrivate::pipeWriterBytesToWrite(), qt_terminateApp(), QProcess::readData(), and QSslSocketBackendPrivate::transmit().
|
inline |
Definition at line 1252 of file qtriangulator.cpp.
|
inline |
Definition at line 69 of file qringbuffer_p.h.
Referenced by _qfile_writeData(), QAbstractSocketPrivate::flush(), QRingBuffer< T >::free(), QRingBuffer< T >::read(), QProcess::readData(), QRingBuffer< T >::readLine(), QRingBuffer< T >::readPointerAtPosition(), and QSslSocketBackendPrivate::transmit().
|
inline |
Definition at line 390 of file qringbuffer_p.h.
|
inline |
Definition at line 239 of file qringbuffer_p.h.
|
inline |
Definition at line 317 of file qringbuffer_p.h.
|
inline |
Definition at line 331 of file qringbuffer_p.h.
|
inline |
Definition at line 343 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::read(), QRingBuffer< T >::readAll(), QRingBuffer< T >::readLine(), and QRingBuffer< T >::skip().
|
inline |
Definition at line 338 of file qringbuffer_p.h.
|
inline |
Definition at line 416 of file qringbuffer_p.h.
|
inline |
Definition at line 73 of file qringbuffer_p.h.
Referenced by _qfile_writeData(), QAbstractSocketPrivate::flush(), QRingBuffer< T >::getChar(), QRingBuffer< T >::read(), QProcess::readData(), QRingBuffer< T >::readLine(), and QSslSocketBackendPrivate::transmit().
|
inline |
Definition at line 80 of file qringbuffer_p.h.
Referenced by QNonContiguousByteDeviceRingBufferImpl::readPointer().
bool QRingBuffer< T >::reallocate | ( | int | capacity | ) |
Definition at line 1261 of file qtriangulator.cpp.
|
inline |
Definition at line 155 of file qringbuffer_p.h.
Referenced by QNetworkReplyImplPrivate::_q_bufferOutgoingData(), QHttpPrivate::_q_slotReadyRead(), QRingBuffer< T >::putChar(), QAbstractSocketPrivate::readFromSocket(), QLocalSocketPrivate::startAsyncRead(), and QSslSocketBackendPrivate::transmit().
|
inline |
Definition at line 256 of file qringbuffer_p.h.
Referenced by QProcess::bytesAvailable(), QAbstractSocketPrivate::canReadNotification(), QAbstractSocketPrivate::canWriteNotification(), QRingBuffer< T >::indexOf(), QRingBuffer< T >::peek(), QRingBuffer< T >::read(), QRingBuffer< T >::readAll(), QProcess::readData(), QAbstractSocketPrivate::readFromSocket(), QRingBuffer< T >::readPointerAtPosition(), QNetworkReplyImplPrivate::setup(), QNonContiguousByteDeviceRingBufferImpl::size(), QLocalSocketPrivate::startAsyncRead(), QSslSocketBackendPrivate::transmit(), and QRingBuffer< T >::truncate().
|
inline |
Definition at line 412 of file qringbuffer_p.h.
|
inline |
Definition at line 192 of file qringbuffer_p.h.
Referenced by QLocalSocketPrivate::completeAsyncRead().
|
inline |
Definition at line 244 of file qringbuffer_p.h.
|
private |
Definition at line 445 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::free(), QRingBuffer< T >::reserve(), and QRingBuffer< T >::ungetChar().
|
private |
Definition at line 442 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::append(), QRingBuffer< T >::chop(), QRingBuffer< T >::clear(), QRingBuffer< T >::free(), QRingBuffer< T >::indexOf(), QRingBuffer< T >::nextDataBlockSize(), QRingBuffer< T >::peek(), QRingBuffer< T >::QRingBuffer(), QRingBuffer< T >::read(), QRingBuffer< T >::readPointer(), QRingBuffer< T >::readPointerAtPosition(), QRingBuffer< T >::reserve(), and QRingBuffer< T >::ungetChar().
|
private |
Definition at line 446 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::append(), QRingBuffer< T >::chop(), QRingBuffer< T >::clear(), QRingBuffer< T >::free(), QRingBuffer< T >::read(), QRingBuffer< T >::readPointerAtPosition(), QRingBuffer< T >::reserve(), QRingBuffer< T >::size(), and QRingBuffer< T >::ungetChar().
|
private |
Definition at line 443 of file qringbuffer_p.h.
|
private |
Definition at line 1254 of file qtriangulator.cpp.
|
private |
Definition at line 1257 of file qtriangulator.cpp.
|
private |
Definition at line 1255 of file qtriangulator.cpp.
|
private |
Definition at line 1256 of file qtriangulator.cpp.
|
private |
Definition at line 443 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::append(), QRingBuffer< T >::chop(), QRingBuffer< T >::clear(), QRingBuffer< T >::free(), QRingBuffer< T >::indexOf(), QRingBuffer< T >::isEmpty(), QRingBuffer< T >::nextDataBlockSize(), QRingBuffer< T >::peek(), QRingBuffer< T >::read(), QRingBuffer< T >::readPointerAtPosition(), and QRingBuffer< T >::reserve().
|
private |
Definition at line 444 of file qringbuffer_p.h.
Referenced by QRingBuffer< T >::append(), QRingBuffer< T >::chop(), QRingBuffer< T >::clear(), QRingBuffer< T >::free(), QRingBuffer< T >::indexOf(), QRingBuffer< T >::isEmpty(), QRingBuffer< T >::nextDataBlockSize(), QRingBuffer< T >::peek(), QRingBuffer< T >::read(), QRingBuffer< T >::readPointerAtPosition(), QRingBuffer< T >::reserve(), and QRingBuffer< T >::ungetChar().