Looks up a key in the glib.HashTable, 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 HashTable.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
void* lookupKey
out void* origKey
out void* value


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 Value

Type: bool

TRUE if the key was found in the glib.HashTable