MCPcopy Create free account
hub / github.com/Tencent/rapidjson / ShrinkToFit

Function ShrinkToFit

include/rapidjson/stringbuffer.h:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60 void Clear() { stack_.Clear(); }
61 void ShrinkToFit() {
62 // Push and pop a null terminator. This is safe.
63 *stack_.template Push<Ch>() = '\0';
64 stack_.ShrinkToFit();
65 stack_.template Pop<Ch>(1);
66 }
67
68 void Reserve(size_t count) { stack_.template Reserve<Ch>(count); }
69 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); }

Callers

nothing calls this directly

Calls 1

ShrinkToFitMethod · 0.80

Tested by

no test coverage detected