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

Method ClearStack

rapidjson/document.h:2423–2430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2421 GenericDocument& operator=(const GenericDocument&);
2422
2423 void ClearStack() {
2424 if (Allocator::kNeedFree)
2425 while (stack_.GetSize() > 0) // Here assumes all elements in stack array are GenericValue (Member is actually 2 GenericValue objects)
2426 (stack_.template Pop<ValueType>(1))->~ValueType();
2427 else
2428 stack_.Clear();
2429 stack_.ShrinkToFit();
2430 }
2431
2432 void Destroy() {
2433 RAPIDJSON_DELETE(ownAllocator_);

Callers 1

~ClearStackOnExitMethod · 0.45

Calls 3

ShrinkToFitMethod · 0.80
GetSizeMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected