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

Function cson_array_length_get

cson/cson.c:519–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 return get->value;
518}
519unsigned int cson_array_length_get(cson_array const *ar)
520{
521 cson__render(ar->value);
522 unsigned int n = 0;
523 JsonNode *node = ar->value->parse.aNode;
524 for (int i = 1; i <= node->n; n++) {
525 i += jsonNodeSize(&node[i]);
526 }
527 return n;
528}
529int cson_array_append(cson_array *ar, cson_value *v)
530{
531 ar->value->modified = 1;

Callers 10

do_bindingsFunction · 0.85
dump_sql_eventFunction · 0.85
test_gFunction · 0.85
test_h_arrFunction · 0.85
print_arrayFunction · 0.85
test_jFunction · 0.85
timepart_deserializeFunction · 0.85
cson_to_tableFunction · 0.85
cson_to_table_annotatedFunction · 0.85

Calls 2

cson__renderFunction · 0.85
jsonNodeSizeFunction · 0.85

Tested by 4

test_gFunction · 0.68
test_h_arrFunction · 0.68
print_arrayFunction · 0.68
test_jFunction · 0.68