Function
Vipsmalloc
Declaration [src]
void*
vips_malloc (
VipsObject* object,
size_t size
)
Description [src]
G_malloc() local to object
, that is, the memory will be automatically
freed for you when the object is closed. If object
is NULL
, you need to
free the memory explicitly with g_free().
This function cannot fail. See vips_tracked_malloc()
if you are
allocating large amounts of memory.
See also: vips_tracked_malloc().
Parameters
object |
VipsObject |
Allocate memory local to this |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
size |
size_t |
Number of bytes to allocate. |