Allocator

Description Prior to 2.10, GAllocator was used as an efficient way to allocate small pieces of memory for use with the GList, GSList and GNode data structures. Since 2.10, it has been completely replaced by the slice allocator and deprecated.

Constructors

this
this(GAllocator* gAllocator)

Sets our main struct and passes it to the parent class

this
this(string name, uint nPreallocs)

Warning g_allocator_new has been deprecated since version 2.10 and should not be used in newly-written code. Use the slice allocator instead Creates a new GAllocator.

Members

Functions

free
void free()

Warning g_allocator_free has been deprecated since version 2.10 and should not be used in newly-written code. Use the slice allocator instead Frees all of the memory allocated by the GAllocator.

getAllocatorStruct
GAllocator* getAllocatorStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

Variables

gAllocator
GAllocator* gAllocator;

the main Gtk struct

Meta