MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / GetArraySize

Method GetArraySize

CJsonObject.cpp:2216–2233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2214}
2215
2216int CJsonObject::GetArraySize()
2217{
2218 if (m_pJsonData != NULL)
2219 {
2220 if (m_pJsonData->type == cJSON_Array)
2221 {
2222 return(cJSON_GetArraySize(m_pJsonData));
2223 }
2224 }
2225 else if (m_pExternJsonDataRef != NULL)
2226 {
2227 if(m_pExternJsonDataRef->type == cJSON_Array)
2228 {
2229 return(cJSON_GetArraySize(m_pExternJsonDataRef));
2230 }
2231 }
2232 return(0);
2233}
2234
2235bool CJsonObject::Get(int iWhich, CJsonObject& oJsonObject) const
2236{

Callers 1

mainFunction · 0.80

Calls 1

cJSON_GetArraySizeFunction · 0.85

Tested by

no test coverage detected