Searched refs:cJSON_malloc (Results 1 – 6 of 6) sorted by relevance
46 static void *(*cJSON_malloc)(size_t sz) = malloc; variable55 if (!(copy = (char*)cJSON_malloc(len))) return 0; in cJSON_strdup()63 cJSON_malloc = malloc; in cJSON_InitHooks()68 cJSON_malloc = (hooks->malloc_fn)?hooks->malloc_fn:malloc; in cJSON_InitHooks()75 cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON)); in cJSON_New_Item()124 str=(char*)cJSON_malloc(21); /* 2^64+1 can be represented in 21 chars. */ in print_number()129 str=(char*)cJSON_malloc(64); /* This is a nice tradeoff. */ in print_number()162 out=(char*)cJSON_malloc(len+1); /* This is how long we need for the string, roughly. */ in parse_string()222 out=(char*)cJSON_malloc(len+3); in print_string_ptr()360 out=(char*)cJSON_malloc(3); in print_array()[all …]
77 copy = (unsigned char*) cJSON_malloc(length); in cJSONUtils_strdup()229 …unsigned char *full_pointer = (unsigned char*)cJSON_malloc(strlen((char*)target_pointer) + 20 + si… in cJSONUtils_FindPointerFromObjectTo()247 …unsigned char *full_pointer = (unsigned char*)cJSON_malloc(strlen((char*)target_pointer) + pointer… in cJSONUtils_FindPointerFromObjectTo()1123 …unsigned char *full_path = (unsigned char*)cJSON_malloc(path_length + suffix_length + sizeof("/")); in compose_patch()1178 …unsigned char *new_path = (unsigned char*)cJSON_malloc(strlen((const char*)path) + 20 + sizeof("/"… in create_patches()1249 …unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + size… in create_patches()
3115 CJSON_PUBLIC(void *) cJSON_malloc(size_t size) in cJSON_malloc() function
286 CJSON_PUBLIC(void *) cJSON_malloc(size_t size);
3102 CJSON_PUBLIC(void *) cJSON_malloc(size_t size) in cJSON_malloc() function
284 CJSON_PUBLIC(void *) cJSON_malloc(size_t size);