HashTable.lookupExtended

Looks up a key in the #GHashTable, returning the original key and the associated value and a #gboolean which is %TRUE if the key was found. This is useful if you need to free the memory allocated for the original key, for example before calling g_hash_table_remove().

You can actually pass %NULL for @lookup_key to test whether the %NULL key exists, provided the hash and equal functions of @hash_table are %NULL-safe.

class HashTable
bool
lookupExtended
(
void* lookupKey
,
out void* origKey
,
out void* value
)

Parameters

lookupKey void*

the key to look up

origKey void*

return location for the original key

value void*

return location for the value associated with the key

Return: %TRUE if the key was found in the #GHashTable

Meta