Top | ![]() |
![]() |
![]() |
![]() |
gpointer | gegl_malloc () |
gpointer | gegl_try_malloc () |
void | gegl_free () |
gpointer | gegl_calloc () |
gboolean | gegl_memeq_zero () |
void | gegl_memset_pattern () |
gpointer
gegl_malloc (gsize n_bytes
);
Allocates n_bytes
of memory. If n_bytes
is 0, returns NULL.
Returns a pointer to the allocated memory.
[skip]
gpointer
gegl_try_malloc (gsize n_bytes
);
Allocates n_bytes
of memory. If allocation fails, or if n_bytes
is 0,
returns NULL
.
Returns a pointer to the allocated memory, or NULL.
[skip]
void
gegl_free (gpointer mem
);
Frees the memory pointed to by mem
. If mem
is NULL, does nothing.
[skip]
gboolean gegl_memeq_zero (gconstpointer ptr
,gsize size
);
Checks if all the bytes of the memory block ptr
, of size size
,
are equal to zero.
[skip]
void gegl_memset_pattern (gpointer dst_ptr
,gconstpointer src_ptr
,gint pattern_size
,gint count
);
Fill dst_ptr
with count
copies of the bytes in src_ptr
.
[skip]