MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_arrprop

Function get_arrprop

tools/cdb2_sqlreplay/cdb2_sqlreplay.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static cson_array *get_arrprop(cson_value *objval, const char *key) {
106 cson_object *obj;
107 cson_value_fetch_object(objval, &obj);
108 cson_value *propval = cson_object_get(obj, key);
109 if (propval == nullptr || !cson_value_is_array(propval))
110 return nullptr;
111 return cson_value_get_array(propval);
112}
113
114bool get_intprop(cson_value *objval, const char *key, int64_t *val) {
115 cson_object *obj;

Callers 1

do_bindingsFunction · 0.85

Calls 4

cson_value_fetch_objectFunction · 0.85
cson_object_getFunction · 0.85
cson_value_is_arrayFunction · 0.85
cson_value_get_arrayFunction · 0.85

Tested by

no test coverage detected