Function
GLibArraysized_new
Declaration [src]
GArray*
g_array_sized_new (
gboolean zero_terminated,
gboolean clear_,
guint element_size,
guint reserved_size
)
Description [src]
Creates a new GArray with reserved_size elements preallocated and
a reference count of 1. This avoids frequent reallocation, if you
are going to add many elements to the array. Note however that the
size of the array is still 0.
This function is not directly available to language bindings.
Parameters
zero_terminated-
Type:
gbooleanTRUEif the array should have an extra element at the end with all bits cleared. clear_-
Type:
gbooleanTRUEif all bits in the array should be cleared to 0 on allocation. element_size-
Type:
guintSize of each element in the array.
reserved_size-
Type:
guintNumber of elements preallocated.