|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
#include <yyjson.h>
Data Fields | |
| void *(* | malloc )(void *ctx, size_t size) |
| void *(* | realloc )(void *ctx, void *ptr, size_t old_size, size_t size) |
| void(* | free )(void *ctx, void *ptr) |
| void * | ctx |
A memory allocator.
Typically you don't need to use it, unless you want to customize your own memory allocator.
| void* yyjson_alc::ctx |
A context for malloc/realloc/free, can be NULL.
Definition at line 670 of file yyjson.h.
Referenced by dyn_malloc(), dyn_realloc(), mut_write_root_minify(), mut_write_root_pretty(), read_root_minify(), read_root_pretty(), read_root_single(), unsafe_yyjson_str_pool_grow(), unsafe_yyjson_str_pool_release(), unsafe_yyjson_val_pool_grow(), unsafe_yyjson_val_pool_release(), write_root_minify(), write_root_pretty(), yyjson_alc_dyn_free(), yyjson_alc_dyn_new(), yyjson_alc_pool_init(), yyjson_incr_free(), yyjson_incr_new(), yyjson_incr_read(), yyjson_mut_doc_free(), yyjson_mut_doc_new(), yyjson_mut_val_imut_copy(), yyjson_mut_val_write_file(), yyjson_mut_val_write_fp(), yyjson_read_fp(), yyjson_read_number(), yyjson_read_opts(), yyjson_val_write_file(), and yyjson_val_write_fp().
Same as libc's free(ptr), should not be NULL.
Definition at line 668 of file yyjson.h.
Referenced by unsafe_yyjson_str_pool_release(), unsafe_yyjson_val_pool_release(), yyjson_alc_dyn_free(), yyjson_alc_dyn_new(), yyjson_alc_pool_init(), yyjson_incr_free(), yyjson_incr_new(), yyjson_mut_doc_free(), yyjson_mut_val_imut_copy(), yyjson_mut_val_write_file(), yyjson_mut_val_write_fp(), yyjson_read_fp(), yyjson_read_number(), yyjson_read_opts(), yyjson_val_write_file(), and yyjson_val_write_fp().
| void *(* yyjson_alc::malloc) (void *ctx, size_t size) |
Same as libc's malloc(size), should not be NULL.
Definition at line 664 of file yyjson.h.
Referenced by dyn_malloc(), mut_write_root_minify(), mut_write_root_pretty(), read_root_minify(), read_root_pretty(), read_root_single(), unsafe_yyjson_str_pool_grow(), unsafe_yyjson_val_pool_grow(), write_root_minify(), write_root_pretty(), yyjson_alc_dyn_new(), yyjson_alc_pool_init(), yyjson_incr_new(), yyjson_incr_read(), yyjson_mut_doc_new(), yyjson_mut_val_imut_copy(), yyjson_read_fp(), yyjson_read_number(), and yyjson_read_opts().
Same as libc's realloc(ptr, size), should not be NULL.
Definition at line 666 of file yyjson.h.
Referenced by dyn_malloc(), dyn_realloc(), yyjson_alc_dyn_new(), yyjson_alc_pool_init(), and yyjson_read_fp().