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

Function EndArray

include/rapidjson/prettywriter.h:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 bool EndArray(SizeType memberCount = 0) {
117 (void)memberCount;
118 RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
119 RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray);
120 bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
121
122 if (!empty) {
123 Base::os_->Put('\n');
124 WriteIndent();
125 }
126 if (!Base::WriteEndArray())
127 return false;
128 if (Base::level_stack_.Empty()) // end of json text
129 Base::os_->Flush();
130 return true;
131 }
132
133 //@}
134

Callers

nothing calls this directly

Calls 6

WriteIndentFunction · 0.85
WriteEndArrayFunction · 0.85
GetSizeMethod · 0.45
PutMethod · 0.45
EmptyMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected