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

Method GetSize

storage/connect/json.cpp:1052–1061  ·  view source on GitHub ↗

/ Return the number of pairs in this object. */ /

Source from the content-addressed store, hash-verified

1050/* Return the number of pairs in this object. */
1051/***********************************************************************/
1052int JOBJECT::GetSize(bool b) {
1053 int n = 0;
1054
1055 for (PJPR jpp = First; jpp; jpp = jpp->Next)
1056 // If b return only non null pairs
1057 if (!b || (jpp->Val && !jpp->Val->IsNull()))
1058 n++;
1059
1060 return n;
1061} // end of GetSize
1062
1063/***********************************************************************/
1064/* Add a new pair to an Object. */

Callers 12

WriteColumnMethod · 0.45
WriteColumnMethod · 0.45
SetValue_pvalMethod · 0.45
IsEqualMethod · 0.45
EvalMethod · 0.45
MakeRecordMethod · 0.45
MakeSrcdefMethod · 0.45
MakeCommandMethod · 0.45
FindMethod · 0.45
MakeJsonMethod · 0.45
MakeJsonMethod · 0.45
MakeDocumentMethod · 0.45

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected