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

Method PushSizeUnsafe

include/sonic/internal/stack.h:108–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107 template <typename T>
108 sonic_force_inline T* PushSizeUnsafe(size_t n) {
109 T* ret = reinterpret_cast<T*>(top_);
110 top_ += n * sizeof(T);
111 return ret;
112 }
113
114 // faster api for push 5 ~ 8 bytes.
115 sonic_force_inline void Push5_8(const char* bytes8, size_t n) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected