34 #ifndef GRPC_IMPL_CODEGEN_ALLOC_H
35 #define GRPC_IMPL_CODEGEN_ALLOC_H
46 void *(*malloc_fn)(
size_t size);
47 void *(*realloc_fn)(
void *ptr,
size_t size);
GPRAPI void gpr_free_aligned(void *ptr)
void(* free_fn)(void *ptr)
Definition: alloc.h:48
GPRAPI void * gpr_malloc(size_t size)
GPRAPI gpr_allocation_functions gpr_get_allocation_functions()
Return the family of allocation functions currently in effect.
GPRAPI void gpr_free(void *ptr)
struct gpr_allocation_functions gpr_allocation_functions
GPRAPI void * gpr_malloc_aligned(size_t size, size_t alignment_log)
GPRAPI void * gpr_realloc(void *p, size_t size)
GPRAPI void gpr_set_allocation_functions(gpr_allocation_functions functions)
Request the family of allocation functions in functions be used.