MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / cJSON_CreateArray

Function cJSON_CreateArray

common/map_sdk/transmission/src/cJSON.cpp:821–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819 return item;
820}
821cJSON *cJSON_CreateArray() {
822 cJSON *item = cJSON_New_Item();
823 if (item) item->type = cJSON_Array;
824 return item;
825}
826cJSON *cJSON_CreateObject() {
827 cJSON *item = cJSON_New_Item();
828 if (item) item->type = cJSON_Object;

Callers 7

cJSON_CreateIntArrayFunction · 0.85
cJSON_CreateFloatArrayFunction · 0.85
cJSON_CreateDoubleArrayFunction · 0.85
cJSON_CreateStringArrayFunction · 0.85
AddEmptySubArrayMethod · 0.85
AddMethod · 0.85
AddAsFirstMethod · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected