Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
yyjson_alc Struct Reference

#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

Detailed Description

A memory allocator.

Typically you don't need to use it, unless you want to customize your own memory allocator.

Definition at line 662 of file yyjson.h.

Field Documentation

◆ ctx

◆ free

◆ malloc

◆ realloc

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.

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().


The documentation for this struct was generated from the following file: