MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / Resize

Method Resize

rapidjson/internal/stack.h:199–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void Resize(size_t newCapacity) {
200 const size_t size = GetSize(); // Backup the current size
201 stack_ = static_cast<char*>(allocator_->Realloc(stack_, GetCapacity(), newCapacity));
202 stackTop_ = stack_ + size;
203 stackEnd_ = stack_ + newCapacity;
204 }
205
206 void Destroy() {
207 Allocator::Free(stack_);

Callers

nothing calls this directly

Calls 2

GetSizeFunction · 0.50
ReallocMethod · 0.45

Tested by

no test coverage detected