Function

AppStream-1.0AppStreamutils_data_id_hashSince 0.14.0

  • 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: string

      a data ID

    Returns number

    a hash value corresponding to the key

    0.14.0