data
will be freed with this function
Return the data pointer plus optionally the length in bytes of an area, the number of elements, the %GType of each element and the sizeof() each element.
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.
Inital count == 1, so _unref() after attaching somewhere.
See also: vips_area_unref().
data
will be freed with this function
An area which holds an array of elements of some %GType. To set values for the elements, get the pointer and write.
See also: vips_area_unref().
%GType of elements to store
sizeof() an element in the array
number of elements in the array
An area which holds an array of %GObject s. See vips_area_new_array(). When the area is freed, each %GObject will be unreffed.
Add an extra NULL element at the end, handy for eg. vips_image_pipeline_array() etc.
See also: vips_area_unref().
number of elements in the array
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.
Inital count == 1, so _unref() after attaching somewhere.
See also: vips_area_unref().