Lines Matching defs:allocate
170 void *(CJSON_CDECL *allocate)(size_t size);
211 copy = (unsigned char*)hooks->allocate(length);
226 global_hooks.allocate = malloc;
232 global_hooks.allocate = malloc;
235 global_hooks.allocate = hooks->malloc_fn;
246 if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free))
255 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON));
671 newbuffer = (unsigned char*)p->hooks.allocate(newsize);
1055 output = (unsigned char*)input_buffer->hooks.allocate(allocation_length + sizeof(""));
1439 buffer->buffer = (unsigned char*) hooks->allocate(default_buffer_size);
1466 printed = (unsigned char*) hooks->allocate(buffer->offset + 1);
1514 p.buffer = (unsigned char*)global_hooks.allocate((size_t)prebuffer);
1721 /* allocate next item */
1879 /* allocate next item */
3458 return global_hooks.allocate(size);