public Array.take (owned G data, bool clear = true, size_t element_size = sizeof ( G))
Creates a new Array with
data as array data,
length and a reference count of 1.
This avoids having to copy the data manually, when it can just be inherited. After this call,
data belongs to the
Array and may no longer be modified by the caller. The memory of
data has to
be dynamically allocated and will eventually be freed with g_free.
an array of elements of
true if Array elements should be automatically cleared to 0 when they are allocated
the size of each element in bytes
the number of elements in
A new Array