PtrArray.copy

Makes a full (deep) copy of a glib.PtrArray

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 glib.PtrArray

The copy of array will have the same GDestroyNotify for its elements as array.

class PtrArray
copy

Parameters

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

Return Value

Type: PtrArray

a deep copy of the initial glib.PtrArray

Meta

Since

2.62