GLib.Array – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Array
Array
Array.sized
append_val
append_vals
index
insert_val
insert_vals
prepend_val
prepend_vals
remove_index
remove_index_fast
remove_range
set_size
sort
sort_with_data
data
length
Array
Object Hierarchy:
Description:
[
Compact
]
public
class
Array
<
G
>
Contains the public fields of a GArray.
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
Array
(
bool
zero_terminated =
true
,
bool
clear =
true
,
ulong
element_size =
0
)
public
Array.sized
(
bool
zero_terminated,
bool
clear,
ulong
element_size,
uint
reserved_size)
Methods:
public
void
append_val
(
owned
G
value)
public
void
append_vals
(
void
* data,
uint
len)
public
void
prepend_val
(
owned
G
value)
public
void
prepend_vals
(
void
* data,
uint
len)
public
void
insert_val
(
uint
index,
owned
G
value)
public
void
insert_vals
(
uint
index,
void
* data,
uint
len)
public
void
remove_index
(
uint
index)
public
void
remove_index_fast
(
uint
index)
public
void
remove_range
(
uint
index,
uint
length)
public
void
sort
(
CompareFunc
<
G
> compare_func)
public
void
sort_with_data
(
CompareDataFunc
<
G
> compare_func)
public
weak
G
index
(
uint
index)
public
void
set_size
(
uint
length)
Fields:
public
uint
length
public
G
[]
data