MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / Reserve

Method Reserve

include/sonic/writebuffer.h:58–58  ·  view source on GitHub ↗

* @brief Increase the capacity of buffer if new_cap is greater than the * current capacity(). Otherwise, do nothing. */

Source from the content-addressed store, hash-verified

56 * current capacity(). Otherwise, do nothing.
57 */
58 sonic_force_inline void Reserve(size_t new_cap) { stack_.Reserve(new_cap); }
59
60 /**
61 * @brief Erases all contexts in the buffer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected