From 16b8fc51fe8f0c15ad84dcecdfdd6f32c2c14dd1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 13 Feb 2025 08:14:30 -0800 Subject: [PATCH] QCborStreamWriter: remove stale doc about 2 GB size limits Those applied to Qt 5's int-based size types. Pick-to: 6.8 6.5 Change-Id: Id8436bae9c641e33770bfffdd55bb1b883863a7c Reviewed-by: Marc Mutz (cherry picked from commit e62407b429f4dc5d900e77a26410f87f56c7d5cd) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/serialization/qcborstreamwriter.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/corelib/serialization/qcborstreamwriter.cpp b/src/corelib/serialization/qcborstreamwriter.cpp index 7b5099567ee..896cd361203 100644 --- a/src/corelib/serialization/qcborstreamwriter.cpp +++ b/src/corelib/serialization/qcborstreamwriter.cpp @@ -587,11 +587,6 @@ void QCborStreamWriter::append(double d) CBOR Byte String value. QCborStreamWriter will attempt to write the entire string in one chunk. - Unlike the QByteArray overload of append(), this function is not limited by - QByteArray's size limits. However, note that neither - QCborStreamReader::readByteArray() nor QCborValue support reading CBOR - streams with byte arrays larger than 2 GB. - \sa append(), appendTextString(), QCborStreamReader::isByteArray(), QCborStreamReader::readByteArray() */ @@ -608,10 +603,6 @@ void QCborStreamWriter::appendByteString(const char *data, qsizetype len) The string pointed to by \a utf8 is expected to be properly encoded UTF-8. QCborStreamWriter performs no validation that this is the case. - Unlike the QLatin1StringView overload of append(), this function is not limited - to 2 GB. However, note that neither QCborStreamReader::readString() nor - QCborValue support reading CBOR streams with text strings larger than 2 GB. - \sa append(QLatin1StringView), append(QStringView), QCborStreamReader::isString(), QCborStreamReader::readString() */ @@ -632,10 +623,6 @@ void QCborStreamWriter::appendTextString(const char *utf8, qsizetype len) The string pointed to by \a str is expected to be properly encoded UTF-8. QCborStreamWriter performs no validation that this is the case. - Unlike the QLatin1StringView overload of append(), this function is not limited - to 2 GB. However, note that neither QCborStreamReader nor QCborValue support - reading CBOR streams with text strings larger than 2 GB. - \sa append(QLatin1StringView), append(QStringView), QCborStreamReader::isString(), QCborStreamReader::readString() */