summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qlocalsocket_unix.cpp
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2021-07-21 14:44:13 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2021-08-01 20:20:46 +0300
commit3bc976c2bda1516066de1eeb706826d26b098952 (patch)
treebbee6cba66c1f37afde40ca8c662f824e177a294 /src/network/socket/qlocalsocket_unix.cpp
parent69c833dae91d004b48f815e0156d6caeb4cdb491 (diff)
QIODevice: allow subclasses to enforce unbuffered mode
For subclasses that implement alternative buffering (such as QLocalSocket), it would be useful to bypass the QIODevice's internal buffer, even if the QIODeviceBase::Unbuffered flag is not set when opened. By setting the readBufferChunkSize member to 0 in their constructors, these classes now unconditionally switch the base class to unbuffered mode, while still reporting buffering with openMode() function. Change-Id: I351bc57ac0ccb45c81f8c6be15f1745131aa26ba Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/network/socket/qlocalsocket_unix.cpp')
0 files changed, 0 insertions, 0 deletions