+ uint32_t digest(std::string& str)
+ {
+ return hashkit_digest(this, str.c_str(), str.length());
+ }
+
+ uint32_t digest(const char *key, size_t key_length)
+ {
+ return hashkit_digest(this, key, key_length);
+ }
+
+ hashkit_return_t set_function(hashkit_hash_algorithm_t hash_algorithm)
+ {
+ return hashkit_set_function(this, hash_algorithm);
+ }
+
+ hashkit_return_t set_distribution_function(hashkit_hash_algorithm_t hash_algorithm)
+ {
+ return hashkit_set_function(this, hash_algorithm);
+ }
+
+ ~Hashkit()
+ {
+ hashkit_free(this);
+ }
+};