Synopsis#include <glib.h> GAllocator; GAllocator* g_allocator_new (const gchar *name, guint n_preallocs); void g_allocator_free (GAllocator *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. DetailsGAllocatortypedef struct _GAllocator GAllocator; Warning
The GAllocator struct contains private data. and should only be accessed using the following functions. g_allocator_new ()GAllocator* g_allocator_new (const gchar *name, guint n_preallocs); Warning
Creates a new GAllocator.
g_allocator_free ()void g_allocator_free (GAllocator *allocator); Warning
Frees all of the memory allocated by the GAllocator.
|