Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
8
-
69e6ae167 (dev), f0aa391ef (dev)
-
Foundation Sprint 69, Foundation Sprint 70, Foundation Sprint 71, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116
Description
QTextStream has QString readLine() as well as readLineInto(QString*, qint64 max), QIODevice only has QByteArray readLine() and lacks readLineInto(QByteArray*, qint64 max).
The idea behind the -Into-functions is to preserve capacity in the string/byte-array from one line to the next, a la std::getline, unlike readLine(), which allocates a new buffer for each line.
Attachments
Issue Links
- depends on
-
QTBUG-113547 [spike] Find out whether QIODevice::readLineInto() is possible to implement without (public) virtual methods
-
- Closed
-
- is required for
-
QTBUG-126574 QIODevice::readLineInto() should have a QSpan overload
-
- Closed
-
- relates to
-
QTBUG-45190 Add QTextStream::read|readAll|readLine(QString *) overloads to reuse QString's capacity
-
- In Review
-
- resulted in
-
QTBUG-133445 ibus x11 doesn't work in 6.9 and dev on Ubuntu 24.04 GNOME
-
- Closed
-