![]() |
Qt 6.x
The Qt SDK
|
#include <qiodevice_p.h>
Classes | |
class | QRingBufferRef |
Public Types | |
enum | AccessMode : quint8 { Unset , Sequential , RandomAccess } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Additional Inherited Members | |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 36 of file qiodevice_p.h.
Enumerator | |
---|---|
Unset | |
Sequential | |
RandomAccess |
Definition at line 112 of file qiodevice_p.h.
QIODevicePrivate::QIODevicePrivate | ( | ) |
Definition at line 124 of file qiodevice.cpp.
|
virtual |
Definition at line 131 of file qiodevice.cpp.
bool QIODevicePrivate::allWriteBuffersEmpty | ( | ) | const |
Definition at line 740 of file qiodevice.cpp.
References writeBuffers.
Referenced by QAbstractSocketPrivate::flush().
|
inline |
Definition at line 125 of file qiodevice_p.h.
Referenced by read().
|
inline |
Definition at line 118 of file qiodevice_p.h.
Referenced by QFileDevicePrivate::putCharHelper(), read(), and readLine().
|
inline |
Definition at line 154 of file qiodevice_p.h.
References QByteArray::constData(), and QByteArray::size().
Referenced by write().
Reimplemented in QBufferPrivate, and QSslSocketPrivate.
Definition at line 1824 of file qiodevice.cpp.
References read().
Referenced by QSslSocketPrivate::peek(), and QSslSocketPrivate::peek().
|
virtual |
Reimplemented in QBufferPrivate, and QSslSocketPrivate.
Definition at line 1832 of file qiodevice.cpp.
References read(), and Qt::Uninitialized.
|
virtual |
Reimplemented in QFileDevicePrivate.
Definition at line 1816 of file qiodevice.cpp.
Referenced by QFileDevicePrivate::putCharHelper().
Definition at line 1036 of file qiodevice.cpp.
References ch, devicePos, forever, isBufferEmpty(), isSequential(), openMode, pos, Q_INT64_C, qMax(), readBufferChunkSize, readFromDevice(), seekBuffer(), QIODeviceBase::Text, transactionPos, transactionStarted, and QIODeviceBase::Unbuffered.
Referenced by QAbstractSocketPrivate::pauseSocketNotifiers(), peek(), peek(), and skipByReading().
Definition at line 1338 of file qiodevice.cpp.
References baseReadLineDataCalled, debugBinaryString(), devicePos, i, isSequential(), openMode, pos, Q_ASSERT, QIODeviceBase::Text, transactionPos, and transactionStarted.
Definition at line 883 of file qiodevice.cpp.
References pos.
Referenced by read().
|
inline |
Definition at line 134 of file qiodevice_p.h.
References channel, and QVLABaseBase::size().
Referenced by setReadChannelCount().
|
inline |
Definition at line 139 of file qiodevice_p.h.
References channel, and QVLABaseBase::size().
Referenced by setWriteChannelCount().
void QIODevicePrivate::setReadChannelCount | ( | int | count | ) |
Definition at line 661 of file qiodevice.cpp.
References currentReadChannel, QVarLengthArray< T, Prealloc >::emplace_back(), QIODEVICE_BUFFERSIZE, readBufferChunkSize, readBuffers, readChannelCount, QVarLengthArray< T, Prealloc >::reserve(), QVarLengthArray< T, Prealloc >::resize(), setCurrentReadChannel(), and QVLABaseBase::size().
Referenced by QAbstractSocketPrivate::fetchConnectionParameters().
void QIODevicePrivate::setWriteChannelCount | ( | int | count | ) |
Definition at line 720 of file qiodevice.cpp.
References currentWriteChannel, QVarLengthArray< T, Prealloc >::emplace_back(), QVarLengthArray< T, Prealloc >::reserve(), QVarLengthArray< T, Prealloc >::resize(), setCurrentWriteChannel(), QVLABaseBase::size(), writeBufferChunkSize, writeBuffers, and writeChannelCount.
Referenced by QAbstractSocketPrivate::fetchConnectionParameters().
Definition at line 2003 of file qiodevice.cpp.
References read().
Definition at line 1760 of file qiodevice.cpp.
References currentWriteChunk, and isWriteChunkCached().
Referenced by QAbstractSocketPrivate::pauseSocketNotifiers().
|
mutable |
Definition at line 117 of file qiodevice_p.h.
bool QIODevicePrivate::baseReadLineDataCalled = false |
Definition at line 108 of file qiodevice_p.h.
Referenced by readLine().
QRingBufferRef QIODevicePrivate::buffer |
Definition at line 92 of file qiodevice_p.h.
Referenced by QNetworkReplyWasmImplPrivate::downloadFailed(), QNetworkReplyWasmImplPrivate::downloadSucceeded(), and QSslSocketPrivate::tlsBuffer().
int QIODevicePrivate::currentReadChannel = 0 |
Definition at line 97 of file qiodevice_p.h.
Referenced by QSctpSocketPrivate::canReadNotification(), QAbstractSocketPrivate::emitReadyRead(), and setReadChannelCount().
int QIODevicePrivate::currentWriteChannel = 0 |
Definition at line 98 of file qiodevice_p.h.
Referenced by QAbstractSocketPrivate::emitBytesWritten(), setWriteChannelCount(), and QSctpSocketPrivate::writeToSocket().
const QByteArray* QIODevicePrivate::currentWriteChunk = nullptr |
Definition at line 94 of file qiodevice_p.h.
Referenced by write().
qint64 QIODevicePrivate::devicePos = 0 |
Definition at line 54 of file qiodevice_p.h.
Referenced by QFileDevicePrivate::putCharHelper(), read(), and readLine().
QString QIODevicePrivate::errorString |
Definition at line 104 of file qiodevice_p.h.
Referenced by QLocalSocketPrivate::_q_errorOccurred(), QNetworkReplyWasmImplPrivate::emitReplyError(), QLocalSocketPrivate::generateErrorString(), QNetworkReplyHttpImplPrivate::httpError(), QAbstractSocketPrivate::setError(), QFileDevicePrivate::setError(), QFileDevicePrivate::setError(), QFileDevicePrivate::setError(), QAbstractSocketPrivate::setErrorAndEmit(), QLocalSocketPrivate::setErrorAndEmit(), and QTlsPrivate::TlsCryptographOpenSSL::transmit().
QIODevice::OpenMode QIODevicePrivate::openMode = QIODevice::NotOpen |
Definition at line 105 of file qiodevice_p.h.
Referenced by QSslSocketPrivate::createPlainSocket(), QFileDevicePrivate::putCharHelper(), read(), and readLine().
qint64 QIODevicePrivate::pos = 0 |
Definition at line 53 of file qiodevice_p.h.
Referenced by QBufferPrivate::peek(), QBufferPrivate::peek(), QFileDevicePrivate::putCharHelper(), read(), readLine(), seekBuffer(), and QNetworkReplyHttpImplPrivate::sentUploadDataSlot().
int QIODevicePrivate::readBufferChunkSize = QIODEVICE_BUFFERSIZE |
Definition at line 99 of file qiodevice_p.h.
Referenced by read(), and setReadChannelCount().
QVarLengthArray<QRingBuffer, 2> QIODevicePrivate::readBuffers |
Definition at line 102 of file qiodevice_p.h.
Referenced by QSctpSocketPrivate::canReadNotification(), QIOPipePrivate::pumpData(), and setReadChannelCount().
int QIODevicePrivate::readChannelCount = 0 |
Definition at line 95 of file qiodevice_p.h.
Referenced by QSslSocketPrivate::_q_connectedSlot(), QSslSocketPrivate::bind(), QAbstractSocketPrivate::fetchConnectionParameters(), and setReadChannelCount().
qint64 QIODevicePrivate::transactionPos = 0 |
Definition at line 55 of file qiodevice_p.h.
Referenced by QSslSocketPrivate::peek(), QSslSocketPrivate::peek(), read(), and readLine().
bool QIODevicePrivate::transactionStarted = false |
Definition at line 107 of file qiodevice_p.h.
Referenced by read(), and readLine().
QRingBufferRef QIODevicePrivate::writeBuffer |
Definition at line 93 of file qiodevice_p.h.
Referenced by QSslSocketPrivate::tlsWriteBuffer().
int QIODevicePrivate::writeBufferChunkSize = 0 |
Definition at line 100 of file qiodevice_p.h.
Referenced by QAbstractSocketPrivate::QAbstractSocketPrivate(), QFileDevicePrivate::QFileDevicePrivate(), QFileDevicePrivate::putCharHelper(), and setWriteChannelCount().
QVarLengthArray<QRingBuffer, 1> QIODevicePrivate::writeBuffers |
Definition at line 103 of file qiodevice_p.h.
Referenced by allWriteBuffersEmpty(), setWriteChannelCount(), and QSctpSocketPrivate::writeToSocket().
int QIODevicePrivate::writeChannelCount = 0 |
Definition at line 96 of file qiodevice_p.h.
Referenced by QSslSocketPrivate::_q_connectedSlot(), QSslSocketPrivate::bind(), QAbstractSocketPrivate::fetchConnectionParameters(), and setWriteChannelCount().