HashTable.stealExtended

Looks up a key in the #GHashTable, stealing the original key and the associated value and returning %TRUE if the key was found. If the key was not found, %FALSE is returned.

If found, the stolen key and value are removed from the hash table without calling the key and value destroy functions, and ownership is transferred to the caller of this method; as with g_hash_table_steal().

You can pass %NULL for @lookup_key, provided the hash and equal functions of @hash_table are %NULL-safe.

class HashTable
bool
stealExtended
(
void* lookupKey
,
out void* stolenKey
,
out void* stolenValue
)

Parameters

lookupKey void*

the key to look up

stolenKey void*

return location for the original key

stolenValue void*

return location for the value associated with the key

Return Value

Type: bool

%TRUE if the key was found in the #GHashTable

Meta

Since

2.58