PtrArray.extend

Adds all pointers of @array to the end of the array @array_to_extend. The array will grow in size automatically if needed. @array_to_extend is modified in-place.

@func, as a #GCopyFunc, takes two arguments, the data to be copied and a @user_data pointer. On common processor architectures, it's safe to pass %NULL as @user_data if the copy function takes only one argument. You may get compiler warnings from this though if compiling with GCC’s -Wcast-function-type warning.

If @func is %NULL, then only the pointers (and not what they are pointing to) are copied to the new #GPtrArray.

class PtrArray
void
extend
(,
GCopyFunc func
,
void* userData
)

Parameters

array PtrArray

a #GPtrArray to add to the end of @array_to_extend.

func GCopyFunc

a copy function used to copy every element in the array

userData void*

user data passed to the copy function @func, or %NULL

Meta

Since

2.62