MemVTable#

class MemVTable(*args, **kwargs)#

A set of functions used to perform memory allocation. The same MemVTable must be used for all allocations in the same program; a call to mem_set_vtable(), 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.

Fields#

class MemVTable
calloc#

Function to use for allocating zero-filled memory.

free#

Function to use to free memory.

malloc#

Function to use for allocating memory.

realloc#

Function to use for reallocating memory.

try_malloc#

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

try_realloc#

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