ValueArray
⚠️ Deprecated ⚠️
This is deprecated since version 2.32.
Use #GArray and g_array_sized_new() instead.
---Allocate and initialize a new #GValueArray, optionally preserve space for @n_prealloced elements. New arrays always contain 0 elements, regardless of the value of @n_prealloced.
Return
a newly allocated #GValueArray with 0 values
Parameters
number of values to preallocate space for
Allocate a new ValueArray.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new ValueArray using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new ValueArray.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
number of values contained in the array
array of values
Allocate a new ValueArray using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
number of values contained in the array
array of values
The AutofreeScope to allocate this structure in.