const struct GNUNET_CONTAINER_BloomFilter * bf,
unsigned int bit);
+
/**
* Call an iterator for each bit that the bloomfilter
* must test or set for this element.
}
}
+
/**
* Callback: increment bit
*
return GNUNET_YES;
}
+
/**
* Callback: decrement bit
*
return GNUNET_YES;
}
+
/**
* Callback: test if all bits are set
*
return GNUNET_OK;
}
+
/**
* Free the space associated with a filter
* in memory, flush to drive if needed (do not
GNUNET_free (bf);
}
+
/**
* Reset a bloom filter to empty. Clears the file on disk.
*
return res;
}
+
/**
* Add an element to the filter
*
GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf,
const GNUNET_HashCode * e)
{
-
if (NULL == bf)
return;
iterateBits (bf, &incrementBitCallback, bf, e);