MemVTable

class MemVTable(val glibMemVTablePointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance(source)

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 g_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.

Skipped during bindings generation

  • field malloc: Fields with callbacks are not supported

  • field realloc: Fields with callbacks are not supported

  • field free: Fields with callbacks are not supported

  • field calloc: Fields with callbacks are not supported

  • field try_malloc: Fields with callbacks are not supported

  • field try_realloc: Fields with callbacks are not supported

Constructors

Link copied to clipboard
constructor()

Allocate a new MemVTable.

constructor(scope: <Error class: unknown class>)

Allocate a new MemVTable using the provided AutofreeScope.

constructor(glibMemVTablePointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val glibMemVTablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun addCleaner(cleaner: <Error class: unknown class>): Boolean

Registers a cleaner to be executed when this proxy object is garbage collected.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun removeCleaner(cleaner: <Error class: unknown class>): Boolean

Removes a previously registered cleaner from this proxy object.