MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ShrinkToFit

Function ShrinkToFit

Source/ThirdParty/rapidjson/stringbuffer.h:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#endif
66 void Clear() { stack_.Clear(); }
67 void ShrinkToFit() {
68 // Push and pop a null terminator. This is safe.
69 *stack_.template Push<Ch>() = '\0';
70 stack_.ShrinkToFit();
71 stack_.template Pop<Ch>(1);
72 }
73
74 void Reserve(size_t count) { stack_.template Reserve<Ch>(count); }
75 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