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

Method Push

include/sonic/internal/stack.h:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 */
74 template <typename T>
75 sonic_force_inline void Push(T v) {
76 Grow(sizeof(T));
77 *reinterpret_cast<T*>(top_) = v;
78 top_ += sizeof(T);
79 }
80
81 /**
82 * @brief Push a string into buffer.

Callers 2

TESTFunction · 0.45
SonicError SerializeImplFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36