Home
last modified time | relevance | path

Searched refs:cJSON_malloc (Results 1 – 5 of 5) sorted by relevance

/third_party/vulkan-loader/loader/
DcJSON.c41 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/
DcJSON_Utils.c72 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()
DcJSON.h293 CJSON_PUBLIC(void *) cJSON_malloc(size_t size);
DCHANGELOG.md249 * Added `cJSON_free` and `cJSON_malloc` that expose the internal configured memory allocators. see …
DcJSON.c3121 CJSON_PUBLIC(void *) cJSON_malloc(size_t size) in cJSON_malloc() function