StatsCodec.snapshot.step: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend as StatsCodec Lines 115-132 of mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&start_line=115&end_line=132 import Base def snapshot.step( entries: Nat, payload_bytes: Nat, snapshots: Nat, scalar: U32, is_digit: Bool, seen: Bool ) -> State: match is_digit: case True{}: SnapshotDigits{entries, payload_bytes, Nat.add(Nat.mul(snapshots, 10n), digit.value(scalar)), True{}} case False{}: match seen: case False{}: Invalid{} case True{}: separator(SnapshotDigits{entries, payload_bytes, snapshots, True{}}, True{}, scalar) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=State https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=digit.value https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=separator