summaryrefslogtreecommitdiffstats
path: root/src/tools/windeployqt/utils.cpp
diff options
context:
space:
mode:
authorRym Bouabid <rym.bouabid@qt.io>2024-09-11 16:57:21 +0200
committerRym Bouabid <rym.bouabid@qt.io>2024-09-20 11:49:14 +0200
commit69e6ae1670faaa901e5ad06a79fa330761f1af36 (patch)
tree7987fb44a13604753ee8c694420833bff4cd4d30 /src/tools/windeployqt/utils.cpp
parent032b16ad075657b3bafb0178c0b1c652d0ccdd67 (diff)
QIODevice: Add QIODevice::readLineInto()
The QByteArray QIODevice::readLine() method allocates new memory (QByteArray) for each line. Introduce 'QIODevice::readLineInto(QByteArray*, qint64 max)' which uses pre-allocated memory to optimize performance. Introduce QIODevicePrivate::skipLine(), similar to readLineData(), to read a line without storing it. Call it in readLineInto() when the line is nullptr and the maxsize is 0 or not specified. [ChangeLog][QtCore][QIODevice] Added readLineInto() an alternative to readLine() that utilizes pre-allocated memory. Task-number: QTBUG-113547 Task-number: QTBUG-103108 Change-Id: I51f24b8664f80652bba3c8fc2cb3af4cf9adbeac Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/windeployqt/utils.cpp')
0 files changed, 0 insertions, 0 deletions