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

Function GetArrayPointer

library/cpp/json/writer/json_value.cpp:1053–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051 }
1052
1053 bool GetArrayPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TArray** value) {
1054 const TJsonValue* v;
1055 if (!jv.GetValuePointer(index, &v) || !v->IsArray()) {
1056 return false;
1057 }
1058 *value = &v->GetArray();
1059 return true;
1060 }
1061
1062 bool GetMapPointer(const TJsonValue& jv, const TStringBuf key, const TJsonValue::TMapType** value) {
1063 const TJsonValue* v;

Callers 2

Y_UNIT_TESTFunction · 0.70
Y_UNIT_TESTFunction · 0.50

Calls 3

GetValuePointerMethod · 0.45
IsArrayMethod · 0.45
GetArrayMethod · 0.45

Tested by

no test coverage detected