Lines Matching refs:allocate
122 void *(CJSON_CDECL *allocate)(size_t size);
160 copy = (unsigned char*)hooks->allocate(length); in cJSON_strdup()
175 global_hooks.allocate = malloc; in cJSON_InitHooks()
181 global_hooks.allocate = malloc; in cJSON_InitHooks()
184 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()
195 if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) in cJSON_InitHooks()
204 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
439 newbuffer = (unsigned char*)p->hooks.allocate(newsize); in ensure()
737 output = (unsigned char*)input_buffer->hooks.allocate(allocation_length + sizeof("")); in parse_string()
1096 buffer->buffer = (unsigned char*) hooks->allocate(default_buffer_size); in print()
1123 printed = (unsigned char*) hooks->allocate(buffer->offset + 1); in print()
1171 p.buffer = (unsigned char*)global_hooks.allocate((size_t)prebuffer); in cJSON_PrintBuffered()
2926 return global_hooks.allocate(size); in cJSON_malloc()