int_hash


Description:

[ Version ( since = "2.22" ) ]
[ CCode ( cname = "g_int_hash" ) ]
public HashFunc<int?> int_hash

Converts a pointer to a int to a hash value.

It can be passed to g_hash_table_new as the hash_func parameter, when using non-null pointers to integer values as keys in a GenericSet.

Note that this function acts on pointers to int, not on int directly: if your hash table's keys are of the form `GINT_TO_POINTER (n)`, use direct_hash instead.

Parameters:

v

a pointer to a int key

Returns:

a hash value corresponding to the key.


Namespace: GLib
Package: glib-2.0