|
GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>#include <grpc/support/alloc.h>#include <grpc/support/log.h>#include <stdlib.h>#include <string.h>#include "src/core/lib/profiling/timers.h"Functions | |
| void * | gpr_malloc (size_t size) |
| malloc. More... | |
| void * | gpr_zalloc (size_t size) |
| like malloc, but zero all bytes before returning them More... | |
| void | gpr_free (void *p) |
| free More... | |
| void * | gpr_realloc (void *p, size_t size) |
| realloc, never returns NULL More... | |
| 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... | |
| void | gpr_free_aligned (void *ptr) |
| free memory allocated by gpr_malloc_aligned More... | |
| void gpr_free | ( | void * | p | ) |
free
| void gpr_free_aligned | ( | void * | ptr | ) |
free memory allocated by gpr_malloc_aligned
| 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.
| 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.
| void* gpr_realloc | ( | void * | p, |
| size_t | size | ||
| ) |
realloc, never returns NULL
| void* gpr_zalloc | ( | size_t | size | ) |
like malloc, but zero all bytes before returning them