Searched refs:cJSON_malloc (Results 1 – 5 of 5) sorted by relevance
/third_party/vulkan-loader/loader/ |
D | cJSON.c | 41 void *cJSON_malloc(const VkAllocationCallbacks *pAllocator, size_t size) { in cJSON_malloc() function 56 copy = (char *)cJSON_malloc(pAllocator, len); in cJSON_strdup() 64 cJSON *node = (cJSON *)cJSON_malloc(pAllocator, sizeof(cJSON)); in cJSON_New_Item() 145 newbuffer = (char *)cJSON_malloc(pAllocator, newsize); in ensure() 173 str = (char *)cJSON_malloc(item->pAllocator, 2); /* special case for 0. */ in print_number() 179 … str = (char *)cJSON_malloc(item->pAllocator, 21); /* 2^64+1 can be represented in 21 chars. */ in print_number() 185 str = (char *)cJSON_malloc(item->pAllocator, 64); /* This is a nice tradeoff. */ in print_number() 257 …out = (char *)cJSON_malloc(item->pAllocator, len + 1); /* This is how long we need for the string,… in parse_string() 353 out = (char *)cJSON_malloc(pAllocator, len + 3); in print_string_ptr() 367 out = (char *)cJSON_malloc(pAllocator, 3); in print_string_ptr() [all …]
|
/third_party/cJSON/ |
D | cJSON_Utils.c | 72 copy = (unsigned char*) cJSON_malloc(length); in cJSONUtils_strdup() 224 …unsigned char *full_pointer = (unsigned char*)cJSON_malloc(strlen((char*)target_pointer) + 20 + si… in cJSONUtils_FindPointerFromObjectTo() 242 …unsigned char *full_pointer = (unsigned char*)cJSON_malloc(strlen((char*)target_pointer) + pointer… in cJSONUtils_FindPointerFromObjectTo() 1120 …unsigned char *full_path = (unsigned char*)cJSON_malloc(path_length + suffix_length + sizeof("/")); in compose_patch() 1175 …unsigned char *new_path = (unsigned char*)cJSON_malloc(strlen((const char*)path) + 20 + sizeof("/"… in create_patches() 1246 …unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + size… in create_patches()
|
D | cJSON.h | 293 CJSON_PUBLIC(void *) cJSON_malloc(size_t size);
|
D | CHANGELOG.md | 249 * Added `cJSON_free` and `cJSON_malloc` that expose the internal configured memory allocators. see …
|
D | cJSON.c | 3121 CJSON_PUBLIC(void *) cJSON_malloc(size_t size) in cJSON_malloc() function
|