Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
-
4
-
Foundation Sprint 120, Foundation Sprint 121
Description
This is a corollary report to QTBUG-45166. QTextStream would be safer (compared to overloads with char* as output parameter) and faster (compared to overloads returning QString) if the following overloads were present to reuse QString's capacity:
bool QTextStream::readInto(QString *s, qint64 maxLen); bool QTextStream::readAllInto(QString *s);
The above overload signatures model along the already existing
bool QTextStream::readLineInto(QString *s, qint64 maxLen); // already exists
Attachments
Issue Links
- relates to
-
QTBUG-57345 Reading a line over 128mb with QTextReader from a file crashes with bad alloc with 32bit application
- Reported
-
QTBUG-70484 QIODevice read, readLine, readAll could report errors through optional bool* or lambda
- Open
-
QTBUG-103108 QIODevice is missing QTextStream-line readLineInto()
- Closed
-
QTBUG-113547 [spike] Find out whether QIODevice::readLineInto() is possible to implement without (public) virtual methods
- Closed
-
QTBUG-106198 QString: add missing STL-style assign()
- Closed
-
QTBUG-126574 QIODevice::readLineInto() should have a QSpan overload
- In Review