MCPcopy Create free account
hub / github.com/MariaDB/server / GetValList

Method GetValList

storage/connect/json.cpp:1100–1109  ·  view source on GitHub ↗

/ Return all values as an array. */ /

Source from the content-addressed store, hash-verified

1098/* Return all values as an array. */
1099/***********************************************************************/
1100PJAR JOBJECT::GetValList(PGLOBAL g)
1101{
1102 PJAR jarp = new(g) JARRAY();
1103
1104 for (PJPR jpp = First; jpp; jpp = jpp->Next)
1105 jarp->AddArrayValue(g, jpp->Val);
1106
1107 jarp->InitArray(g);
1108 return jarp;
1109} // end of GetValList
1110
1111/***********************************************************************/
1112/* Get the value corresponding to the given key. */

Callers 1

json_object_valuesFunction · 0.80

Calls 2

InitArrayMethod · 0.80
AddArrayValueMethod · 0.45

Tested by

no test coverage detected