Turnstone Operating System
|
bloom filter interface More...
Macros | |
#define | ___BLOOMFILTER_H 0 |
Typedefs | |
typedef struct bloomfilter_t | bloomfilter_t |
! bloomfilter_t type | |
Functions | |
bloomfilter_t * | bloomfilter_new (uint64_t entry_count, float64_t error) |
creates new bloomfilter More... | |
boolean_t | bloomfilter_destroy (bloomfilter_t *bf) |
destroy's bloom filter More... | |
boolean_t | bloomfilter_check (bloomfilter_t *bf, data_t *data) |
check given data in bloom filter More... | |
boolean_t | bloomfilter_add (bloomfilter_t *bf, data_t *data) |
add given data to bloom filter More... | |
data_t * | bloomfilter_serialize (bloomfilter_t *bf) |
serialize given bloom filter More... | |
bloomfilter_t * | bloomfilter_deserialize (data_t *data) |
deserialize given bloom filter More... | |
bloom filter interface
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
#define ___BLOOMFILTER_H 0 |
prevent duplicate header error macro
boolean_t bloomfilter_add | ( | bloomfilter_t * | bf, |
data_t * | data | ||
) |
add given data to bloom filter
[in] | bf | bloom filter |
[in] | data | given data |
boolean_t bloomfilter_check | ( | bloomfilter_t * | bf, |
data_t * | data | ||
) |
check given data in bloom filter
[in] | bf | bloom filter |
[in] | data | given data |
bloomfilter_t * bloomfilter_deserialize | ( | data_t * | data | ) |
deserialize given bloom filter
[in] | data | data that holds serialized bloom filter |
boolean_t bloomfilter_destroy | ( | bloomfilter_t * | bf | ) |
destroy's bloom filter
[in] | bf | bloom filter |
bloomfilter_t * bloomfilter_new | ( | uint64_t | entry_count, |
float64_t | error | ||
) |
creates new bloomfilter
[in] | entry_count | how many entries |
[in] | error | error rate for false positive |
data_t * bloomfilter_serialize | ( | bloomfilter_t * | bf | ) |
serialize given bloom filter
[in] | bf | bloom filter to serialize |