yyjson 0.10.0
A high performance C JSON library.
|
#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.
void(* yyjson_alc::free) (void *ctx, void *ptr) |
Same as libc's free(ptr), should not be NULL.
void *(* yyjson_alc::malloc) (void *ctx, size_t size) |
Same as libc's malloc(size), should not be NULL.
void *(* yyjson_alc::realloc) (void *ctx, void *ptr, size_t old_size, size_t size) |
Same as libc's realloc(ptr, size), should not be NULL.