27struct _cx_memory_vtable_
29 cxptr (*malloc)(cxsize);
30 cxptr (*calloc)(cxsize, cxsize);
31 cxptr (*realloc)(cxptr, cxsize);
35typedef struct _cx_memory_vtable_ cx_memory_vtable;
cxptr cx_malloc_clear(cxsize)
Allocate nbytes bytes and clear them.
Definition cxmemory.c:321
void cx_memory_vtable_set(const cx_memory_vtable *)
Install a new set of memory managmement functions.
Definition cxmemory.c:224
void cx_free(cxptr)
Memory block deallocation.
Definition cxmemory.c:477
cxptr cx_malloc(cxsize)
Allocate nbytes bytes.
Definition cxmemory.c:272
cxptr cx_realloc(cxptr, cxsize)
Change the size of a memory block.
Definition cxmemory.c:433
cxptr cx_calloc(cxsize, cxsize)
Allocate memory for natoms elements of size size.
Definition cxmemory.c:372
cxbool cx_memory_is_system_malloc(void)
Check if the system's defaults are used for memory allocation.
Definition cxmemory.c:518