ByteDurableDb.snapshot.root.value.length.dispatch: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb Lines 3065-3080 of mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&start_line=3065&end_line=3080 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable import mylsm-lsm-store@0.6.0.1/src/coordinator/SnapshotValueLengthPolicy.bend as SnapshotValueLengthPolicy import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def snapshot.root.value.length.dispatch( root: SnapshotRoot, +probe: ByteMemTable.LengthProbe, key: Bytes.Bytes, decision: SnapshotValueLengthPolicy.Decision ) -> IO(Result<&1, &1, Error, Maybe<&1, U32>>): match root: case SnapshotRoot{sst_path, _, _, _}: match decision: case SnapshotValueLengthPolicy.NeedSst{}: snapshot.root.value.length.metadata.read(sst_path, probe, key) case SnapshotValueLengthPolicy.Missing{}: IO.pure(Result<&1, &1, Error, Maybe<&1, U32>>, Done{None{}}) case SnapshotValueLengthPolicy.Found{value_bytes}: IO.pure(Result<&1, &1, Error, Maybe<&1, U32>>, Done{Some{value_bytes}}) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=SnapshotRoot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=snapshot.root.value.length.metadata.read https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=LengthProbe https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/SnapshotValueLengthPolicy.bend&name=Decision