MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Resize

Method Resize

include/rapidjson/internal/stack.h:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 void Resize(size_t newCapacity) {
157 const size_t size = GetSize(); // Backup the current size
158 stack_ = (char*)allocator_->Realloc(stack_, GetCapacity(), newCapacity);
159 stackTop_ = stack_ + size;
160 stackEnd_ = stack_ + newCapacity;
161 }
162
163 void Destroy() {
164 Allocator::Free(stack_);

Callers

nothing calls this directly

Calls 2

ReallocMethod · 0.80
GetSizeFunction · 0.50

Tested by

no test coverage detected