ArrayG.insertVals

Inserts @len elements into a #GArray at the given index.

If @index_ is greater than the array’s current length, the array is expanded. The elements between the old end of the array and the newly inserted elements will be initialised to zero if the array was configured to clear elements; otherwise their values will be undefined.

If @index_ is less than the array’s current length, new entries will be inserted into the array, and the existing entries above @index_ will be moved upwards.

@data may be %NULL if (and only if) @len is zero. If @len is zero, this function is a no-op.

class ArrayG
insertVals
(
uint index
,
void* data
,
uint len
)

Parameters

index uint

the index to place the elements at

data void*

a pointer to the elements to insert

len uint

the number of elements to insert

Return Value

Type: ArrayG

the #GArray

Meta