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

Method GetObjectValList

storage/connect/bson.cpp:949–958  ·  view source on GitHub ↗

/ Return all object values as an array. */ /

Source from the content-addressed store, hash-verified

947/* Return all object values as an array. */
948/***********************************************************************/
949PBVAL BJSON::GetObjectValList(PBVAL bop)
950{
951 CheckType(bop, TYPE_JOB);
952 PBVAL arp = NewVal(TYPE_JAR);
953
954 for (PBPR brp = GetObject(bop); brp; brp = GetNext(brp))
955 AddArrayValue(arp, DupVal(GetVlp(brp)));
956
957 return arp;
958} // end of GetObjectValList
959
960/***********************************************************************/
961/* Get the value corresponding to the given key. */

Callers 2

bson_object_valuesFunction · 0.80
bbin_object_valuesFunction · 0.80

Calls 1

GetNextFunction · 0.70

Tested by

no test coverage detected