StudyGlib/app/src/main/cpp/study/type.c
/**
 * vips_value_set_array:
 * @value: (out): %GValue to set
 * @n: number of elements
 * @type: the type of each element
 * @sizeof_type: the sizeof each element
 *
 * Set @value to be an array of things.
 *
 * This allocates memory but does not
 * initialise the contents: get the pointer and write instead.
 */


Set @value to be an array of things.

This allocates memory but does not
initialise the contents: get the pointer and write instead.
Set @value to be an array of things . This allocates memory but does not initialise the contents : get the pointer and write instead .
void
vips_value_set_array( GValue *value, int n, GType type, size_t sizeof_type )
{
    VipsArea *area;
    area = vips_area_new_array( type, sizeof_type, n );
    g_value_set_boxed( value, area );
    vips_area_unref( area );
}
void vips_value_set_array ( GValue * value , int n , GType type , size_t sizeof_type ) { VipsArea * area ; area = vips_area_new_array ( type , sizeof_type , n ) ; g_value_set_boxed ( value , area ) ; vips_area_unref ( area ) ; }
vips_value_set_array:
 @value: (out): %GValue to set
 @n: number of elements
 @type: the type of each element
 @sizeof_type: the sizeof each element
vips_value_set_array : @value : ( out ) : %GValue to set @n : number of elements @type : the type of each element @sizeof_type : the sizeof each element