def bloom_test
import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstableimport 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))