MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Push

Method Push

include/rapidjson/internal/stack.h:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 // Expansion is run very infrequently, so it is moved to another (probably non-inline) function.
104 template<typename T>
105 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) {
106 // Expand the stack if needed
107 if (stackTop_ + sizeof(T) * count >= stackEnd_)
108 Expand<T>(count);
109
110 T* ret = reinterpret_cast<T*>(stackTop_);
111 stackTop_ += sizeof(T) * count;
112 return ret;
113 }
114
115 template<typename T>
116 T* Pop(size_t count) {

Callers 5

WriteIntMethod · 0.45
WriteUintMethod · 0.45
WriteInt64Method · 0.45
WriteUint64Method · 0.45
WriteDoubleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected