Variant.this

Provides access to the serialised data for an array of fixed-sized items.

@value must be an array with fixed-sized elements. Numeric types are fixed-size as are tuples containing only other fixed-sized types.

@element_size must be the size of a single element in the array. For example, if calling this function for an array of 32-bit integers, you might say sizeof(gint32). This value isn't used except for the purpose of a double-check that the form of the serialised data matches the caller's expectation.

@n_elements, which must be non-%NULL is set equal to the number of items in the array.

Parameters

elementType VariantType

the #GVariantType of each element

elements void*

a pointer to the fixed array of contiguous elements

nElements size_t

the number of elements

elementSize size_t

the size of each element

Return Value

a floating reference to a new array #GVariant instance

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.32