From 41e59ae0fa146f62f5f04ca3237d6ba119c951a0 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Sat, 12 Sep 2015 16:57:38 +0300 Subject: 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 Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qiodevice_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/io/qiodevice_p.h') 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; -- cgit v1.2.3