• Home
  • Raw
  • Download

Lines Matching refs:cJSON_malloc

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()
386 out = (char *)cJSON_malloc(pAllocator, len + 3); in print_string_ptr()
484 p.buffer = (char *)cJSON_malloc(item->pAllocator, prebuffer); in cJSON_PrintBuffered()
634 out = (char *)cJSON_malloc(item->pAllocator, 3); in print_array()
668 entries = (char **)cJSON_malloc(item->pAllocator, numentries * sizeof(char *)); in print_array()
684 if (!fail) out = (char *)cJSON_malloc(item->pAllocator, len); in print_array()
782 out = (char *)cJSON_malloc(item->pAllocator, fmt ? depth + 4 : 3); in print_object()
844 entries = (char **)cJSON_malloc(item->pAllocator, numentries * sizeof(char *)); in print_object()
846 names = (char **)cJSON_malloc(item->pAllocator, numentries * sizeof(char *)); in print_object()
869 if (!fail) out = (char *)cJSON_malloc(item->pAllocator, len); in print_object()