free(b);
}
-static bool __bloom_check(struct bloom *b, void *data, unsigned int len,
+static bool __bloom_check(struct bloom *b, const void *data, unsigned int len,
bool set)
{
uint32_t hash[N_HASHES];
{
return __bloom_check(b, data, nwords * sizeof(uint32_t), true);
}
+
+bool bloom_set_string(struct bloom *b, const char *data, unsigned int len)
+{
+ return __bloom_check(b, data, len, true);
+}