Searched refs:allocate (Results 1 – 3 of 3) sorted by relevance
123 void *(*allocate)(size_t size); member161 copy = (unsigned char*)hooks->allocate(length); in cJSON_strdup()176 global_hooks.allocate = malloc; in cJSON_InitHooks()182 global_hooks.allocate = malloc; in cJSON_InitHooks()185 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()196 if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) in cJSON_InitHooks()205 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()440 newbuffer = (unsigned char*)p->hooks.allocate(newsize); in ensure()738 output = (unsigned char*)input_buffer->hooks.allocate(allocation_length + sizeof("")); in parse_string()1097 buffer->buffer = (unsigned char*) hooks->allocate(default_buffer_size); in print()[all …]
32 In this case, typically `init_connection` is used to allocate memory for
613 "%s: Cannot allocate memory for boundary [%lu]",