Function
VipsAreanew
Declaration [src]
VipsArea*
vips_area_new (
VipsCallbackFn free_fn,
void* data
)
Description [src]
A VipsArea wraps a chunk of memory. It adds reference counting and a free
function. It also keeps a count and a GType, so the area can
be an array.
This type is used for things like passing an array of double or an array of
VipsObject pointers to operations, and for reference-counted immutable strings.
Initial count == 1, so vips_area_unref() after attaching somewhere.
::: seealso
vips_area_unref().
Parameters
free_fn |
VipsCallbackFn |
|
|
data |
void* |
Data will be freed with this function. |
|
The argument can be NULL. | |
| The called function takes ownership of the data, and is responsible for freeing it. |