directHash

Converts a gpointer to a hash value. It can be passed to glib.hash_table.HashTable.new_ as the hash_func parameter, when using opaque pointers compared by pointer value as keys in a #GHashTable.

This hash function is also appropriate for keys that are integers stored in pointers, such as GINT_TO_POINTER (n).

uint
directHash
(
const(void)* v = null
)

Parameters

v const(void)*

a #gpointer key

Return Value

Type: uint

a hash value corresponding to the key.