MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / EndArray

Method EndArray

Source/ThirdParty/rapidjson/prettywriter.h:162–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161
162 bool EndArray(SizeType memberCount = 0) {
163 (void)memberCount;
164 RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
165 RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray);
166 bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
167
168 if (!empty && !(formatOptions_ & kFormatSingleLineArray)) {
169 Base::os_->Put('\n');
170 WriteIndent();
171 }
172 bool ret = Base::EndValue(Base::WriteEndArray());
173 (void)ret;
174 RAPIDJSON_ASSERT(ret == true);
175 if (Base::level_stack_.Empty()) // end of json text
176 Base::Flush();
177 return true;
178 }
179
180 //@}
181

Callers

nothing calls this directly

Calls 4

FlushFunction · 0.70
GetSizeMethod · 0.45
PutMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected