[Interest] QFile::write(const QByteArray&) does not write, all data?

Roland Hughes roland at logikalsolutions.com
Sat May 12 16:18:03 CEST 2018



On 05/12/2018 08:57 AM, interest-request at qt-project.org wrote:
> On Thursday, 10 May 2018 23:11:04 PDT alexander golks wrote:
>> i think it "silently" breaks here without setting error condition on the
>> QFile when hitting errors on all chunks but the first one, thus returning a
>> size lower the input array size, which is the behaviour i see.
> It's not an error to not write everything.
It most certainly should be. Either everything got written or there was 
a failure, device buffer full, whatever.
The only reason to not write everything is some error happened.

-- 
Roland Hughes, President
Logikal Solutions
(630)-205-1593

http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
http://lesedi.us/
http://onedollarcontentstore.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180512/05bc8930/attachment.html>


More information about the Interest mailing list