StatsCodec.finish: 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 201-208 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=201&end_line=208 import Base # Completes parsing only when the payload byte field contains digits. def finish(state: State) -> Decision: match state: case CursorDigits{entries, payload_bytes, snapshots, retained_bytes, cursors, True{}}: Parsed{ByteStats{entries, payload_bytes, snapshots, retained_bytes, cursors}} case _: Malformed{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=Decision 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=Stats