src/cx/hash_key.h

changeset 663
d50b5dc1e058
parent 628
1e2be40f0cb5
child 681
502105523db7
     1.1 --- a/src/cx/hash_key.h	Thu Feb 23 22:43:13 2023 +0100
     1.2 +++ b/src/cx/hash_key.h	Sun Mar 05 10:55:32 2023 +0100
     1.3 @@ -121,6 +121,14 @@
     1.4          size_t len
     1.5  );
     1.6  
     1.7 +/**
     1.8 + * Computes a hash key from a UCX string.
     1.9 + *
    1.10 + * @param str the string
    1.11 + * @return the hash key
    1.12 + */
    1.13 +#define cx_hash_key_cxstr(str) cx_hash_key((void*)(str).ptr, (str).length)
    1.14 +
    1.15  #ifdef __cplusplus
    1.16  } // extern "C"
    1.17  #endif

mercurial