diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-25 14:52:45 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-25 15:25:15 (GMT) |
commit | 3984253ac58e0cca1c0b94fad1549dd4e0e3c2e1 (patch) | |
tree | 98fdc5bf2e42626eb0cebcfb60c2a61a73b352c3 /src/network/access/qhttpnetworkconnection_p.h | |
parent | b393abc9ce2e2a5396e655895fe653f9e06e355f (diff) | |
download | Qt-3984253ac58e0cca1c0b94fad1549dd4e0e3c2e1.zip Qt-3984253ac58e0cca1c0b94fad1549dd4e0e3c2e1.tar.gz Qt-3984253ac58e0cca1c0b94fad1549dd4e0e3c2e1.tar.bz2 |
QNAM HTTP Code: Prepare for download performance improvements
Change the QByteArray to a QRingBuffer to save re-allocation time.
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/network/access/qhttpnetworkconnection_p.h')
-rw-r--r-- | src/network/access/qhttpnetworkconnection_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qhttpnetworkconnection_p.h b/src/network/access/qhttpnetworkconnection_p.h index bc4d948..3eb8ffe 100644 --- a/src/network/access/qhttpnetworkconnection_p.h +++ b/src/network/access/qhttpnetworkconnection_p.h @@ -258,6 +258,7 @@ public: void appendCompressedData(QHttpNetworkReply &reply, const QByteArray &fragment); qint64 uncompressedBytesAvailable(const QHttpNetworkReply &reply) const; + qint64 uncompressedBytesAvailableNextBlock(const QHttpNetworkReply &reply) const; qint64 compressedBytesAvailable(const QHttpNetworkReply &reply) const; qint64 read(QHttpNetworkReply &reply, QByteArray &data, qint64 maxSize); |