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

Method StartObject

library/cpp/json/json_reader.cpp:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 bool StartObject() {
274 if (Access(S.top()).IsArray()) {
275 S.emplace(&Access(S.top()).AppendValue(NJson::JSON_MAP));
276 if (!IsWithinStackBounds()) {
277 return false;
278 }
279 } else {
280 Access(S.top()).SetType(NJson::JSON_MAP);
281 }
282 return true;
283 }
284
285 bool Key(const char* str, rapidjson::SizeType length, bool copy) {
286 Y_ASSERT(copy);

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