From e62407b429f4dc5d900e77a26410f87f56c7d5cd 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.9 6.8 6.5 Change-Id: Id8436bae9c641e33770bfffdd55bb1b883863a7c Reviewed-by: Marc Mutz --- 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 713b4116661..4b1ef64313d 100644 --- a/src/corelib/serialization/qcborstreamwriter.cpp +++ b/src/corelib/serialization/qcborstreamwriter.cpp @@ -589,11 +589,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() */ @@ -610,10 +605,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() */ @@ -634,10 +625,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() */