Lines Matching refs:capacity
754 data_.a.size = data_.a.capacity = count;
1194 SizeType MemberCapacity() const { RAPIDJSON_ASSERT(IsObject()); return data_.o.capacity; }
1646 SizeType Capacity() const { RAPIDJSON_ASSERT(IsArray()); return data_.a.capacity; }
1696 if (newCapacity > data_.a.capacity) {
1697 …ret_cast<GenericValue*>(allocator.Realloc(GetElementsPointer(), data_.a.capacity * sizeof(GenericV…
1698 data_.a.capacity = newCapacity;
1715 if (data_.a.size >= data_.a.capacity)
1716 …Reserve(data_.a.capacity == 0 ? kDefaultArrayCapacity : (data_.a.capacity + (data_.a.capacity + 1)…
2088 SizeType capacity;
2094 SizeType capacity;
2148 static RAPIDJSON_FORCEINLINE size_t GetMapLayoutSize(SizeType capacity) {
2151 RAPIDJSON_ALIGN(capacity * sizeof(Member)) +
2152 capacity * sizeof(MapIterator);
2213 RAPIDJSON_FORCEINLINE Member* DoAllocMembers(SizeType capacity, Allocator& allocator) {
2214 return GetMapMembers(DoReallocMap(0, capacity, allocator));
2219 if (newCapacity > o.capacity) {
2224 o.capacity = newCapacity;
2268 RAPIDJSON_FORCEINLINE Member* DoAllocMembers(SizeType capacity, Allocator& allocator) {
2269 return Malloc<Member>(allocator, capacity);
2274 if (newCapacity > o.capacity) {
2275 … Member* newMembers = Realloc<Member>(allocator, GetMembersPointer(), o.capacity, newCapacity);
2277 o.capacity = newCapacity;
2306 if (o.size >= o.capacity)
2307 …DoReserveMembers(o.capacity ? (o.capacity + (o.capacity + 1) / 2) : kDefaultObjectCapacity, alloca…
2397 data_.o.size = data_.o.capacity = count;
2411 data_.a.size = data_.a.capacity = count;
2431 data_.o.size = data_.o.capacity = count;