qt6-bb10/tests/auto/corelib/tools/qbytearray
Thiago Macieira 0a78d918f0 Replace qAllocMore with a pair of more useful functions
The first is "exact", not "more": qCalculateBlockSize. It ensures that
there's no overflow in multiplying, adding the header size or when
converting back to an int.

The second is the replacement for qAllocMore: it calculates the block
size like the first, but increases the block size to accommodate future
appends. The number of elements that fit in the block is also returned.

Task-number: QTBUG-41230
Change-Id: I52dd43c12685407bb9a6ffff13f5da09f816e667
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-06-09 15:32:14 +00:00
..
.gitattributes Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
android_testdata.qrc Android: Fix QByteArray test 2015-01-06 16:44:30 +01:00
qbytearray.pro Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
rfc3252.txt Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
tst_qbytearray.cpp Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
tst_qbytearray_mac.mm Updated license headers 2016-01-21 18:55:18 +00:00