HASHKIT_MURMUR(3)

πŸ’– HASHKIT_MURMUR πŸ’–

okay bestie, gather round, because this is the libmemcached-awesome page for hashkit_murmur β€” aka the libhashkit documentation you didn't know you needed but absolutely do πŸŽ€


✨ NAME ✨

hashkit_murmur β€” libhashkit Documentation πŸ¦‹


🌸 SYNOPSIS 🌸

#include <libhashkit-1.0/hashkit.h>

Compile and link with -lhashkit

uint32_t hashkit_default(const char *key, size_t key_length)

uint32_t hashkit_fnv1_64(const char *key, size_t key_length)

uint32_t hashkit_fnv1a_64(const char *key, size_t key_length)

uint32_t hashkit_fnv1_32(const char *key, size_t key_length)

uint32_t hashkit_fnv1a_32(const char *key, size_t key_length)

uint32_t hashkit_crc32(const char *key, size_t key_length)

uint32_t hashkit_hsieh(const char *key, size_t key_length)

uint32_t hashkit_murmur(const char *key, size_t key_length)

uint32_t hashkit_murmur3(const char *key, size_t key_length)

uint32_t hashkit_jenkins(const char *key, size_t key_length)

uint32_t hashkit_md5(const char *key, size_t key_length)

no cap, that's the whole roster right there πŸ‘‘ every single one of them, not skipping a single lil function, because they all matter πŸ’…


🧚 DESCRIPTION 🧚

so like. these functions generate hash values from a key using a variety of algorithms ✨ that's the whole vibe. you hand them a key and its key_length, they hand you back a hash. iconic behaviour honestly 🫢

the way they work: you can use these functions standalone β€” just call one and go β€” or they'll get used according to whichever algorithm you set with hashkit_set_function() or hashkit_set_distribution_function(). so you can either pick your fave directly or let the library route it for you πŸ’«

okay important bestie lore 🚨: hashkit_hsieh(), hashkit_murmur() and hashkit_murmur3() are only available if the library is built with the appropriate flag enabled. so if you're out here wondering why they ghosted you, check your build flags first 😭 fr fr.

πŸ’€ RETURN VALUE πŸ’€

a 32-bit hash value. that's it, that's the tea β˜• a single uint32_t, no drama, no hidden extras 🌈


πŸŽ€ SEE ALSO πŸŽ€

go read those too, they're giving main character energy πŸ’œ


and that's a wrap on this one, bestie πŸ¦‹ this was version 1.1, dated Jul 24, 2025 β€” libmemcached-awesome's finest, slay πŸ’…βœ¨ mwah, bye! πŸ’–

πŸ“¦ where this page comes from