diff -r d0d95740071b -r d50b5dc1e058 src/cx/hash_key.h --- a/src/cx/hash_key.h Thu Feb 23 22:43:13 2023 +0100 +++ b/src/cx/hash_key.h Sun Mar 05 10:55:32 2023 +0100 @@ -121,6 +121,14 @@ size_t len ); +/** + * Computes a hash key from a UCX string. + * + * @param str the string + * @return the hash key + */ +#define cx_hash_key_cxstr(str) cx_hash_key((void*)(str).ptr, (str).length) + #ifdef __cplusplus } // extern "C" #endif