SubArray
Object Hierarchy:
Description:
public class SubArray<
G> :
Object,
Traversable<
G>,
Iterable<
G>
An unowned slice of an array.
Content:
Properties:
- public int size { get; }
The number of elements.
Creation methods:
Methods:
- public unowned G @get (int index)
- public void @set (int index, owned G item)
- public void copy (int start, SubArray<G> src, int src_start, int count)
Copies the data from src into this.
- public void copy_array (int start, G[] src, int src_start, int count)
Copies the data from src into this.
- public unowned G[] get_data ()
Gets the array data.
- public void sort (owned CompareDataFunc<G>? compare_func = null)
Sorts the elements by comparing with the specified compare function. The
sort is stable.
- public SubArray<G> sub_array (int start, int stop)
Creates a new sub array slice.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gee.Traversable
All known members inherited from interface Gee.Iterable