memIsSystemMalloc

fnbool memIsSystemMalloc()

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

Returns

if true, malloc() and [glib.global.gmalloc] can be mixed.

Deprecated

GLib always uses the system malloc, so this function always

returns true.