intHash

Converts a pointer to a #gint to a hash value. It can be passed to glib.hash_table.HashTable.new_ as the hash_func parameter, when using non-null pointers to integer values as keys in a #GHashTable.

Note that this function acts on pointers to #gint, not on #gint directly: if your hash table's keys are of the form GINT_TO_POINTER (n), use glib.global.directHash instead.

uint
intHash
(
const(void)* v
)

Parameters

v const(void)*

a pointer to a #gint key

Return Value

Type: uint

a hash value corresponding to the key.