Array
Object Hierarchy:
Description:
[ Compact ]
[ Version ( since = "2.22" ) ]
[ CCode ( ref_function = "g_array_ref" , type_id = "G_TYPE_ARRAY" , unref_function = "g_array_unref" ) ]
public class Array<G>
Contains the public fields of a `GArray`.
Content:
Creation methods:
- public Array (bool zero_terminated = true, bool clear = true, ulong element_size = sizeof ( G ?))
- public Array.sized (bool zero_terminated = true, bool clear = true, ulong element_size = sizeof ( G ?), uint reserved_size = 0)
- public Array.take (owned G[] data, bool clear = true, size_t element_size = sizeof ( G ?))
Creates a new `GArray` with data as array data,
data.length as length and a reference count of 1.
- public Array.take_zero_terminated (owned G[] data, bool clear = true, size_t element_size = sizeof ( G ?))
Creates a new `GArray` with data as array data, computing
the length of it and setting the reference count to 1.
Methods:
Fields: