docs/Writerside/topics/hash_key.h.md

changeset 1653
6a842bd49fea
parent 1424
563033aa998c
equal deleted inserted replaced
1652:db8299984bfe 1653:6a842bd49fea
19 CxHashKey cx_hash_key_cxstr(cxstring str); 19 CxHashKey cx_hash_key_cxstr(cxstring str);
20 CxHashKey cx_hash_key_u32(uint32_t x); 20 CxHashKey cx_hash_key_u32(uint32_t x);
21 CxHashKey cx_hash_key_u64(uint64_t x); 21 CxHashKey cx_hash_key_u64(uint64_t x);
22 22
23 int cx_hash_key_cmp(const CxHashKey *left, const CxHashKey *right); 23 int cx_hash_key_cmp(const CxHashKey *left, const CxHashKey *right);
24
25 cxstring cx_hash_key_as_string(const CxHashKey *key);
24 ``` 26 ```
25 27
26 ## Description 28 ## Description
27 29
28 The primary function for creating a `CxHashKey` structure from non-integers is `cx_hash_key()`. 30 The primary function for creating a `CxHashKey` structure from non-integers is `cx_hash_key()`.
62 cx_hash_murmur(&key); 64 cx_hash_murmur(&key);
63 ``` 65 ```
64 66
65 Hash keys are compared with `cx_hash_key_cmp()`. 67 Hash keys are compared with `cx_hash_key_cmp()`.
66 68
69 When you have a key that stores a string, you can retrieve it by using `cx_hash_key_as_string()`.
70
67 <seealso> 71 <seealso>
68 <category ref="apidoc"> 72 <category ref="apidoc">
69 <a href="https://ucx.sourceforge.io/api/hash__key_8h.html">hash_key.h</a> 73 <a href="https://ucx.sourceforge.io/api/hash__key_8h.html">hash_key.h</a>
70 </category> 74 </category>
71 </seealso> 75 </seealso>

mercurial