GRPC Core  0.13.1-pre1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
alloc.h File Reference
#include <stddef.h>
#include <grpc/impl/codegen/port_platform.h>

Go to the source code of this file.

Data Structures

struct  gpr_allocation_functions
 

Typedefs

typedef struct
gpr_allocation_functions 
gpr_allocation_functions
 

Functions

GPRAPI void * gpr_malloc (size_t size)
 
GPRAPI void gpr_free (void *ptr)
 
GPRAPI void * gpr_realloc (void *p, size_t size)
 
GPRAPI void * gpr_malloc_aligned (size_t size, size_t alignment_log)
 
GPRAPI void gpr_free_aligned (void *ptr)
 
GPRAPI void gpr_set_allocation_functions (gpr_allocation_functions functions)
 Request the family of allocation functions in functions be used. More...
 
GPRAPI gpr_allocation_functions gpr_get_allocation_functions ()
 Return the family of allocation functions currently in effect. More...
 

Typedef Documentation

Function Documentation

GPRAPI void gpr_free ( void *  ptr)
GPRAPI void gpr_free_aligned ( void *  ptr)
GPRAPI gpr_allocation_functions gpr_get_allocation_functions ( )

Return the family of allocation functions currently in effect.

GPRAPI void* gpr_malloc ( size_t  size)
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.

NOTE that this request will be honored in a best effort basis and that no guarantees are made about the default functions (eg, malloc) being called.