| 98 | } |
| 99 | |
| 100 | inline int64_t nthHash(uint8_t n, uint64_t hashA, uint64_t hashB, int64_t filterSize) { |
| 101 | return static_cast<int64_t>((hashA + n * hashB) % static_cast<uint64_t>(filterSize)); |
| 102 | } |
| 103 | |
| 104 | void BloomFilter::add(const uint8_t *item, int length) { |
| 105 | auto hashValues = hash(item, length); |
no outgoing calls
no test coverage detected