Creates a new glib.PtrArray with reserved_size pointers preallocated
and a reference count of 1. This avoids frequent reallocation, if
you are going to add many pointers to the array. Note however that
the size of the array is still 0. It also set element_free_func
for freeing each element when the array is destroyed either via
PtrArray.unref, when PtrArray.free is called with
free_segment set to TRUE or when removing elements.
Creates a new glib.PtrArray with reserved_size pointers preallocated and a reference count of 1. This avoids frequent reallocation, if you are going to add many pointers to the array. Note however that the size of the array is still 0. It also set element_free_func for freeing each element when the array is destroyed either via PtrArray.unref, when PtrArray.free is called with free_segment set to TRUE or when removing elements.