MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / EndArray

Method EndArray

rapidjson/prettywriter.h:149–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 bool EndArray(SizeType memberCount = 0) {
150 (void)memberCount;
151 RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
152 RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray);
153 bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
154
155 if (!empty && !(formatOptions_ & kFormatSingleLineArray)) {
156 Base::os_->Put('\n');
157 WriteIndent();
158 }
159 bool ret = Base::WriteEndArray();
160 (void)ret;
161 RAPIDJSON_ASSERT(ret == true);
162 if (Base::level_stack_.Empty()) // end of json text
163 Base::os_->Flush();
164 return true;
165 }
166
167 //@}
168

Callers

nothing calls this directly

Calls 4

GetSizeMethod · 0.45
PutMethod · 0.45
EmptyMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected