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

Function EndObject

include/rapidjson/writer.h:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); }
137
138 bool EndObject(SizeType memberCount = 0) {
139 (void)memberCount;
140 RAPIDJSON_ASSERT(level_stack_.GetSize() >= sizeof(Level));
141 RAPIDJSON_ASSERT(!level_stack_.template Top<Level>()->inArray);
142 level_stack_.template Pop<Level>(1);
143 bool ret = WriteEndObject();
144 if (level_stack_.Empty()) // end of json text
145 os_->Flush();
146 return ret;
147 }
148
149 bool StartArray() {
150 Prefix(kArrayType);

Callers

nothing calls this directly

Calls 4

WriteEndObjectFunction · 0.85
GetSizeMethod · 0.45
EmptyMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected