def bhash
import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstableimport Base
103# --- Local byte hash (kept stable for on-disk/rebuild compatibility) ---
104def bhash(str: String, acc: U32) -> U32:
105 match str:
106 case SNil{}:
107 acc
108 case SCon{c, t}:
109 bhash(t, U32.add(U32.mul(acc, 31), Char.to_u32(c)))