HashTable.stealExtended

Looks up a key in the glib.HashTable, 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 HashTable.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 glib.HashTable

Meta

Since

2.58