gmem.h File Reference

__G_MEM_H__

Typedef GMemVTable

typedef typedefG_BEGIN_DECLS struct _GMemVTableGMemVTable

G_MEM_ALIGN

g_malloc ( gsize )

IMPORT_C gpointerg_malloc(gsizen_bytes)

g_malloc0 ( gsize )

IMPORT_C gpointerg_malloc0(gsizen_bytes)

g_realloc ( gpointer, gsize )

IMPORT_C gpointerg_realloc(gpointermem,
gsizen_bytes
)

g_free ( gpointer )

IMPORT_C voidg_free(gpointermem)

g_try_malloc ( gsize )

IMPORT_C gpointerg_try_malloc(gsizen_bytes)

g_try_malloc0 ( gsize )

IMPORT_C gpointerg_try_malloc0(gsizen_bytes)

g_try_realloc ( gpointer, gsize )

IMPORT_C gpointerg_try_realloc(gpointermem,
gsizen_bytes
)

g_new

g_new0

g_renew

g_try_new

g_try_new0

g_try_renew

g_mem_set_vtable ( GMemVTable * )

IMPORT_C voidg_mem_set_vtable(GMemVTable *vtable)

g_mem_is_system_malloc ( void )

IMPORT_C gbooleang_mem_is_system_malloc(void)

g_mem_is_system_malloc

Checks whether the allocator used by g_malloc() is the system's malloc implementation. If it returns TRUE memory allocated with malloc() can be used interchangeable with memory allocated using g_malloc(). This function is useful for avoiding an extra copy of allocated memory returned by a non-GLib-based API.

A different allocator can be set using g_mem_set_vtable().

Return value: if TRUE, malloc() and g_malloc() can be mixed.

_g_mem_gc_friendly ( void )

IMPORT_C gboolean *_g_mem_gc_friendly(void)

g_mem_gc_friendly

GLIB_VAR gbooleang_mem_gc_friendly

_glib_mem_profiler_table ( void )

IMPORT_C GMemVTable **_glib_mem_profiler_table(void)

glib_mem_profiler_table

GLIB_VAR GMemVTable *glib_mem_profiler_table

g_mem_profile ( void )

IMPORT_C voidg_mem_profile(void)

Typedef GAllocator

typedef struct _GAllocatorGAllocator

Typedef GMemChunk

typedef struct _GMemChunkGMemChunk

g_mem_chunk_create

g_chunk_new

g_chunk_new0

g_chunk_free

G_ALLOC_ONLY

G_ALLOC_AND_FREE

g_mem_chunk_new ( const gchar *, gint, gsize, gint )

IMPORT_C GMemChunk *g_mem_chunk_new(const gchar *name,
gintatom_size,
gsizearea_size,
ginttype
)

g_mem_chunk_destroy ( GMemChunk * )

IMPORT_C voidg_mem_chunk_destroy(GMemChunk *mem_chunk)

g_mem_chunk_alloc ( GMemChunk * )

IMPORT_C gpointerg_mem_chunk_alloc(GMemChunk *mem_chunk)

g_mem_chunk_alloc0 ( GMemChunk * )

IMPORT_C gpointerg_mem_chunk_alloc0(GMemChunk *mem_chunk)

g_mem_chunk_free ( GMemChunk *, gpointer )

IMPORT_C voidg_mem_chunk_free(GMemChunk *mem_chunk,
gpointermem
)

g_mem_chunk_clean ( GMemChunk * )

IMPORT_C voidg_mem_chunk_clean(GMemChunk *mem_chunk)

g_mem_chunk_reset ( GMemChunk * )

IMPORT_C voidg_mem_chunk_reset(GMemChunk *mem_chunk)

g_mem_chunk_print ( GMemChunk * )

IMPORT_C voidg_mem_chunk_print(GMemChunk *mem_chunk)

g_mem_chunk_info ( void )

IMPORT_C voidg_mem_chunk_info(void)

g_blow_chunks ( void )

IMPORT_C voidg_blow_chunks(void)

g_allocator_new ( const gchar *, guint )

IMPORT_C GAllocator *g_allocator_new(const gchar *name,
guintn_preallocs
)

g_allocator_free ( GAllocator * )

IMPORT_C voidg_allocator_free(GAllocator *allocator)

G_ALLOCATOR_LIST

G_ALLOCATOR_SLIST

G_ALLOCATOR_NODE