def bloom_test

mylsm-lsm-store@0.6.0.1 · src/Sstable.bend:196

import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable
import Base

196# Handle Bloom filter data for test for the SSTable indexes, filters, and lookup.
197def bloom_test(bloom: Bloom, +key: String) -> Bool:
198  match bloom:
199    case Blm{+bits, +size}:
200      both(bit_get(bhash_n(key, 17, size), bits), bit_get(bhash_n(key, 257, size), bits))

Uses (6)

Used by (1)