/* Returns: (nullable): the associated value, or NULL if the key is not found  */
gpointer g_hash_table_lookup(GHashTable *hash_table, gconstpointer key)
/* Returns: (nullable): the associated value, or NULL if the key is not found  */
gpointer g_hash_table_lookup(GHashTable *hash_table, gconstpointer key)
{
  guint node_index;
  guint node_hash;
  g_return_val_if_fail (hash_table != NULL, NULL);
  node_index = g_hash_table_lookup_node (hash_table, key, &node_hash);
  return HASH_IS_REAL (hash_table->hashes[node_index])
    ? hash_table->values[node_index]
    : NULL;
}