Function

Vipsvalue_get_array

Declaration [src]

void*
vips_value_get_array (
  const GValue* value,
  int* n,
  GType* type,
  size_t* sizeof_type
)

Description [src]

Return the pointer to the array held by value. Optionally return the other properties of the array in n, type, sizeof_type.

::: seealso vips_value_set_array().

Parameters

value GValue
 

GValue to get from.

 The data is owned by the caller of the function.
n int*
 

Return the number of elements here, optionally.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
type GType*
 

Return the type of each element here, optionally.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
sizeof_type size_t*
 

Return the sizeof each element here, optionally.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gpointer
 

The array address.

 The data is owned by the called function.
 The return value can be NULL.