Home
last modified time | relevance | path

Searched refs:newCapacity (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/internal/
H A Dstack.h183 size_t newCapacity; in Expand() local
187 newCapacity = initialCapacity_; in Expand()
189 newCapacity = GetCapacity(); in Expand()
190 newCapacity += (newCapacity + 1) / 2; in Expand()
193 if (newCapacity < newSize) in Expand()
194 newCapacity = newSize; in Expand()
196 Resize(newCapacity); in Expand()
199 void Resize(size_t newCapacity) { in Resize() argument
201 stack_ = static_cast<char*>(allocator_->Realloc(stack_, GetCapacity(), newCapacity)); in Resize()
203 stackEnd_ = stack_ + newCapacity; in Resize()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/
H A Ddocument.h1522 GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) {
1524 if (newCapacity > data_.a.capacity) {
1525 …Realloc(GetElementsPointer(), data_.a.capacity * sizeof(GenericValue), newCapacity * sizeof(Generi…
1526 data_.a.capacity = newCapacity;
2464 …GenericArray Reserve(SizeType newCapacity, AllocatorType &allocator) const { value_.Reserve(newCap…