utils_data_id_hash


Description:


[ Version ( since = "0.14.0" ) ]
public uint utils_data_id_hash (string data_id)

Converts a data-id to a hash value.

This function implements the widely used DJB hash on the ID subset of the data-id string.

It can be passed to g_hash_table_new as the hash_func parameter, when using non-NULL strings or unique_ids as keys in a GHashTable.

Parameters:

data_id

a data ID

Returns:

a hash value corresponding to the key


Namespace: AppStream
Package: appstream