#include <apr.h>
Go to the source code of this file.
Typedefs | |
| typedef apr_uint32_t( | ssp_hash_function_t )(void *item) |
| Signature for user provided hash functions. | |
The bloom filter and counter work on sets or streams of items. Items are represented by data of type void * and the only operation on those are hash functions.
|
|
Signature for user provided hash functions. The type ssp_hash_function_t defines the signature of of the two hash functions the user must provide on his items. They take a items, represented by a void * pointer, and return up to 32 bits of psuedo random hash derived from the item. If fewer bits are needed in the filter/counters you instantiate only the low order bits are used. Of course, in that scenario the user's hash functions need not create more hash bits. |
1.4.4