diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2015-09-12 16:57:38 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2016-01-27 06:32:49 +0000 |
commit | 41e59ae0fa146f62f5f04ca3237d6ba119c951a0 (patch) | |
tree | 6fc7889cf56a7f1d0a190272ce655984ce067bda /src/corelib/io/qiodevice_p.h | |
parent | 1c0494e63b2750bc4de61ff6f3f07f2d3cab2dbd (diff) |
QIODevice: make the read/write chunk sizes configurable
By default, the read chunk size is QIODEVICE_BUFFERSIZE and the write
chunk size is 0 (which means that we don't use the internal write buffer).
Derived classes may override these values to define the size of
QIODevice's write buffer or to optimize the read buffer use.
Bump the TypeInformationVersion field in qtHookData, to notify the
Qt Creator developers that the offset of QFilePrivate::fileName was
changed and dumpers should be adapted.
Change-Id: Ib732bc94be8da8a5514a6e5dcc04445895f130d8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qiodevice_p.h')
-rw-r--r-- | src/corelib/io/qiodevice_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qiodevice_p.h b/src/corelib/io/qiodevice_p.h index 1bb569532b..f2fd0ca069 100644 --- a/src/corelib/io/qiodevice_p.h +++ b/src/corelib/io/qiodevice_p.h @@ -64,7 +64,7 @@ QT_BEGIN_NAMESPACE #ifndef QIODEVICE_BUFFERSIZE -#define QIODEVICE_BUFFERSIZE Q_INT64_C(16384) +#define QIODEVICE_BUFFERSIZE 16384 #endif Q_CORE_EXPORT int qt_subtract_from_timeout(int timeout, int elapsed); @@ -125,6 +125,8 @@ public: int writeChannelCount; int currentReadChannel; int currentWriteChannel; + int readBufferChunkSize; + int writeBufferChunkSize; qint64 transactionPos; bool transactionStarted; bool baseReadLineDataCalled; |