util-bloomfilter-counting.c File Reference
Include dependency graph for util-bloomfilter-counting.c:

Go to the source code of this file.


BloomFilterCountingBloomFilterCountingInit (uint32_t size, uint8_t type, uint8_t iter, uint32_t(*Hash)(const void *, uint16_t, uint8_t, uint32_t))
void BloomFilterCountingFree (BloomFilterCounting *bf)
void BloomFilterCountingPrint (BloomFilterCounting *bf)
int BloomFilterCountingAdd (BloomFilterCounting *bf, const void *data, uint16_t datalen)
int BloomFilterCountingRemove (BloomFilterCounting *bf, const void *data, uint16_t datalen)
int BloomFilterCountingTest (BloomFilterCounting *bf, const void *data, uint16_t datalen)
void BloomFilterCountingRegisterTests (void)

Detailed Description

Victor Julien

Counting Bloom Filter implementation. Can be used with 8, 16, 32 bits counters.

Definition in file util-bloomfilter-counting.c.

Function Documentation

◆ BloomFilterCountingAdd()

int BloomFilterCountingAdd ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen 

◆ BloomFilterCountingFree()

void BloomFilterCountingFree ( BloomFilterCounting bf)

Definition at line 78 of file util-bloomfilter-counting.c.

References BloomFilterCounting_::array, and SCFree.

◆ BloomFilterCountingInit()

BloomFilterCounting* BloomFilterCountingInit ( uint32_t  size,
uint8_t  type,
uint8_t  iter,
uint32_t(*)(const void *, uint16_t, uint8_t, uint32_t)  Hash 

◆ BloomFilterCountingPrint()

◆ BloomFilterCountingRegisterTests()

void BloomFilterCountingRegisterTests ( void  )

Definition at line 393 of file util-bloomfilter-counting.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ BloomFilterCountingRemove()

int BloomFilterCountingRemove ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen 

◆ BloomFilterCountingTest()

int BloomFilterCountingTest ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen