hashkit_functions - Man Page

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)

Description

These functions generate hash values from a key using a variety of algorithms. These functions can be used standalone, or will be used according to the algorithm set with hashkit_set_function() or hashkit_set_distribution_function().

The hashkit_hsieh(), hashkit_murmur() and hashkit_murmur3() functions are only available if the library is built with the appropriate flag enabled.

Return Value

A 32-bit hash value.

See Also

libhashkit(3) hashkit_create(3) hashkit_function(3)

Referenced By

hashkit_function(3), hashkit_get_distribution_function(3), hashkit_get_function(3), hashkit_set_custom_distribution_function(3), hashkit_set_custom_function(3), hashkit_set_distribution_function(3), hashkit_set_function(3), hashkit_value(3), libhashkit(3).

Sep 20, 2021 1.1 libmemcached-awesome