MCPcopy Create free account
hub / github.com/catboost/catboost / StartArray

Method StartArray

library/cpp/json/json_reader.cpp:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 bool StartArray() {
316 if (Access(S.top()).IsArray()) {
317 S.emplace(&Access(S.top()).AppendValue(NJson::JSON_ARRAY));
318 if (!IsWithinStackBounds()) {
319 return false;
320 }
321 } else {
322 Access(S.top()).SetType(NJson::JSON_ARRAY);
323 }
324 return true;
325 }
326
327 bool EndArray(rapidjson::SizeType elementCount) {
328 Y_ASSERT(elementCount == Access(S.top()).GetArray().size());

Callers

nothing calls this directly

Calls 5

AppendValueMethod · 0.80
AccessEnum · 0.50
IsArrayMethod · 0.45
emplaceMethod · 0.45
SetTypeMethod · 0.45

Tested by

no test coverage detected