GMemVTable

A set of functions used to perform memory allocation. The same #GMemVTable must be used for all allocations in the same program; a call to glib.global.memSetVtable, if it exists, should be prior to any use of GLib.

This functions related to this has been deprecated in 2.46, and no longer work.

Members

Variables

calloc
void* function(size_t nBlocks, size_t nBlockBytes) calloc;

function to use for allocating zero-filled memory.

free
void function(void* mem) free;

function to use to free memory.

malloc
void* function(size_t nBytes) malloc;

function to use for allocating memory.

realloc
void* function(void* mem, size_t nBytes) realloc;

function to use for reallocating memory.

tryMalloc
void* function(size_t nBytes) tryMalloc;

function to use for allocating memory without a default error handler.

tryRealloc
void* function(void* mem, size_t nBytes) tryRealloc;

function to use for reallocating memory without a default error handler.