Commit 0e267272 authored by Rico Tzschichholz's avatar Rico Tzschichholz

glib-2.0: Add HashTable.steal_extended(), GenericArray.steal_index(_fast)()

parent 57c815f2
......@@ -4771,6 +4771,8 @@ namespace GLib {
public bool steal (K key);
[Version (since = "2.12")]
public void steal_all ();
[Version (since = "2.58")]
public bool steal_extended (K lookup_key, out K stolen_key, out V stolen_value);
[CCode (cname = "_vala_g_hash_table_take")]
public V? take (K key, out bool exists = null) {
GLib.HashTable<K,V>? ht = null;
......@@ -5005,6 +5007,11 @@ namespace GLib {
return compare_func ((G**) (*a), (G**) (*b));
});
}
[Version (since = "2.58")]
public G steal_index (uint index);
[Version (since = "2.58")]
public G steal_index_fast (uint index);
private void set_size (int length);
public int length {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment