HASHKIT_FNV1_32(3)

πŸ’– HASHKIT_FNV1_32 πŸ’–

okay bestie, welcome to the libmemcached-awesome girlies' corner of the manual, section 3 πŸŽ€ this one's all about the hashkit functions and honestly? it's giving "one page, eleven icons, zero notes" πŸ’…


✨ NAME ✨

hashkit_fnv1_32 β€” the libhashkit documentation, fr fr πŸ¦‹


🌸 SYNOPSIS 🌸

First things first, you gotta pull in the header and link the lib, no cap:

#include <libhashkit-1.0/hashkit.h>
       Compile and link with -lhashkit

and here's the whole squad of hash functions, all lined up looking iconic πŸ‘‘:

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)

🧚 DESCRIPTION 🧚

so what do these do?? literally they take a key and generate hash values from it, using a whole variety of algorithms 🌈 you can call them standalone as a little treat, or they'll get used according to whichever algorithm you set with hashkit_set_function() or hashkit_set_distribution_function() β€” main character energy, they show up either way πŸ’–

ok important tea tho πŸ«– β€” hashkit_hsieh(), hashkit_murmur() and hashkit_murmur3() are only available if the library is built with the appropriate flag enabled. like, if that flag isn't on, those three are just not invited to the party. periodt.

⭐ RETURN VALUE ⭐

A 32-bit hash value. that's it, that's the whole vibe πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

go read those next bestie, iykyk πŸ’œ


and that's a wrap!! this page is from libmemcached-awesome, version 1.1, dated Jul 24, 2025 🌸 stay hashing, stay hydrated, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from