| 67 * Type for a hash key. |
67 * Type for a hash key. |
| 68 */ |
68 */ |
| 69 typedef struct cx_hash_key_s CxHashKey; |
69 typedef struct cx_hash_key_s CxHashKey; |
| 70 |
70 |
| 71 /** |
71 /** |
| 72 * Computes a murmur hash-2. |
72 * Computes a murmur2 32 bit hash. |
| 73 * |
73 * |
| 74 * You need to initialize data and len in the key struct. |
74 * You need to initialize \c data and \c len in the key struct. |
| 75 * The hash is then directly written to that struct. |
75 * The hash is then directly written to that struct. |
| |
76 * |
| |
77 * \note If \c data is \c NULL, the hash is defined as 1574210520. |
| 76 * |
78 * |
| 77 * @param key the key, the hash shall be computed for |
79 * @param key the key, the hash shall be computed for |
| 78 */ |
80 */ |
| 79 void cx_hash_murmur(CxHashKey *key); |
81 void cx_hash_murmur(CxHashKey *key); |
| 80 |
82 |