Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qbytearray.h"
#include "qdebug.h"
#include "qiodevice_p.h"
#include "qfile.h"
#include "qstringlist.h"
#include "qdir.h"
#include "private/qtools_p.h"
#include <algorithm>
#include "moc_qiodevice.cpp"
Go to the source code of this file.
Macros | |
#define | Q_VOID |
#define | CHECK_MAXLEN(function, returnType) |
#define | CHECK_LINEMAXLEN(function, returnType) |
#define | CHECK_MAXBYTEARRAYSIZE(function) |
#define | CHECK_WRITABLE(function, returnType) |
#define | CHECK_READABLE(function, returnType) |
Functions | |
static void | debugBinaryString (const char *input, qint64 maxlen) |
static Q_DECL_COLD_FUNCTION void | checkWarnMessage (const QIODevice *device, const char *function, const char *what) |
int | qt_subtract_from_timeout (int timeout, int elapsed) |
QDebug | operator<< (QDebug debug, QIODevice::OpenMode modes) |
#define CHECK_LINEMAXLEN | ( | function, | |
returnType ) |
Definition at line 81 of file qiodevice.cpp.
Referenced by QIODevice::readLine(), and QIODevice::readLine().
#define CHECK_MAXBYTEARRAYSIZE | ( | function | ) |
Definition at line 89 of file qiodevice.cpp.
Referenced by QIODevice::peek(), QIODevice::read(), and QIODevice::readLine().
#define CHECK_MAXLEN | ( | function, | |
returnType ) |
Definition at line 73 of file qiodevice.cpp.
Referenced by QIODevice::peek(), QIODevice::peek(), QIODevice::read(), QIODevice::read(), QIODevice::skip(), and QIODevice::write().
#define CHECK_READABLE | ( | function, | |
returnType ) |
Definition at line 109 of file qiodevice.cpp.
Referenced by QIODevice::peek(), QIODevice::peek(), QIODevice::read(), QIODevice::read(), QIODevice::readAll(), QIODevice::readLine(), QIODevice::readLine(), QIODevice::skip(), and QIODevice::ungetChar().
#define CHECK_WRITABLE | ( | function, | |
returnType ) |
Definition at line 97 of file qiodevice.cpp.
Referenced by QIODevice::write().
#define Q_VOID |
Definition at line 45 of file qiodevice.cpp.
Referenced by QDataStream::abortTransaction(), QDataStream::rollbackTransaction(), QDataStream::startTransaction(), and QIODevice::ungetChar().
|
static |
Definition at line 48 of file qiodevice.cpp.
References d, device, function, Q_UNUSED, qWarning, and QDir::toNativeSeparators().
Referenced by QIODevice::commitTransaction(), QIODevice::rollbackTransaction(), QIODevice::seek(), QIODevice::setCurrentReadChannel(), QIODevice::setTextModeEnabled(), QIODevice::startTransaction(), and QIODevice::ungetChar().
Definition at line 22 of file qiodevice.cpp.
References QByteArray::clear(), i, QtMiscUtils::isAsciiPrintable(), j, and QByteArray::size().
Referenced by QIODevice::read(), QIODevice::readLine(), and QIODevicePrivate::readLine().
Definition at line 2202 of file qiodevice.cpp.
References QIODeviceBase::Append, debug, QIODeviceBase::NotOpen, QIODeviceBase::ReadOnly, QIODeviceBase::Text, QIODeviceBase::Truncate, QIODeviceBase::Unbuffered, and QIODeviceBase::WriteOnly.
int qt_subtract_from_timeout | ( | int | timeout, |
int | elapsed ) |
Reduces the timeout by elapsed, taking into account that -1 is a special value for timeouts.
Definition at line 2191 of file qiodevice.cpp.
References elapsed().
Referenced by QSslSocket::waitForBytesWritten(), QSslSocket::waitForDisconnected(), QSslSocket::waitForEncrypted(), QPacketProtocol::waitForReadyRead(), and QSslSocket::waitForReadyRead().