:right-sidebar: True MemVTable =================================================================== .. currentmodule:: gi.repository.GLib .. class:: MemVTable(*args, **kwargs) :no-contents-entry: A set of functions used to perform memory allocation. The same :obj:`~gi.repository.GLib.MemVTable` must be used for all allocations in the same program; a call to :func:`~gi.repository.GLib.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 ------ .. rst-class:: interim-class .. class:: MemVTable :no-index: .. attribute:: calloc Function to use for allocating zero-filled memory. .. attribute:: free Function to use to free memory. .. attribute:: malloc Function to use for allocating memory. .. attribute:: realloc Function to use for reallocating memory. .. attribute:: try_malloc Function to use for allocating memory without a default error handler. .. attribute:: try_realloc Function to use for reallocating memory without a default error handler.