Memory.memSetVtable

Sets the #GMemVTable to use for memory allocation. You can use this to provide custom memory allocation routines.

The @vtable only needs to provide malloc(), realloc(), and free() functions; GLib can provide default implementations of the others. The malloc() and realloc() implementations should return %NULL on failure, GLib will handle error-checking for you. @vtable is copied, so need not persist after this function has been called.

Note that this function must be called before using any other GLib functions.

struct Memory
static
void
memSetVtable

Parameters

vtable GMemVTable*

table of memory allocation routines.

Meta