GRPC C++
1.66.0
|
Go to the source code of this file.
Functions | |
GPRAPI void * | gpr_malloc (size_t size) |
malloc. More... | |
GPRAPI void * | gpr_zalloc (size_t size) |
like malloc, but zero all bytes before returning them More... | |
GPRAPI void | gpr_free (void *ptr) |
free More... | |
GPRAPI void * | gpr_realloc (void *p, size_t size) |
realloc, never returns NULL More... | |
GPRAPI void * | gpr_malloc_aligned (size_t size, size_t alignment) |
aligned malloc, never returns NULL, will align to alignment, which must be a power of 2. More... | |
GPRAPI void | gpr_free_aligned (void *ptr) |
free memory allocated by gpr_malloc_aligned More... | |
GPRAPI void gpr_free | ( | void * | ptr | ) |
free
GPRAPI void gpr_free_aligned | ( | void * | ptr | ) |
free memory allocated by gpr_malloc_aligned
GPRAPI void* gpr_malloc | ( | size_t | size | ) |
malloc.
If size==0, always returns NULL. Otherwise this function never returns NULL. The pointer returned is suitably aligned for any kind of variable it could contain.
GPRAPI void* gpr_malloc_aligned | ( | size_t | size, |
size_t | alignment | ||
) |
aligned malloc, never returns NULL, will align to alignment, which must be a power of 2.
GPRAPI void* gpr_realloc | ( | void * | p, |
size_t | size | ||
) |
realloc, never returns NULL
GPRAPI void* gpr_zalloc | ( | size_t | size | ) |
like malloc, but zero all bytes before returning them