def bloom_add

mylsm-lsm-store@0.3.2.0 · src/Sstable.bend:159

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

159def bloom_add(bloom: Bloom, +key: String) -> Bloom:
160  match bloom:
161    case Blm{bits, +size}:
162      Blm{bit_set(bhash_n(key, 17, size), bit_set(bhash_n(key, 257, size), bits)), size}

Uses (4)

Used by (1)