def parse.step

mylsm-lsm-store@0.6.0.1 · src/coordinator/StatsCodec.bend:169

import mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend as StatsCodec
import Base

169def parse.step(state: State, scalar: U32, is_digit: Bool) -> State:
170  match state:
171    case EntryDigits{entries, seen}:
172      entry.step(entries, scalar, is_digit, seen)
173    case PayloadDigits{entries, payload_bytes, seen}:
174      payload.step(entries, payload_bytes, scalar, is_digit, seen)
175    case SnapshotDigits{entries, payload_bytes, snapshots, seen}:
176      snapshot.step(entries, payload_bytes, snapshots, scalar, is_digit, seen)
177    case RetainedDigits{entries, payload_bytes, snapshots, retained_bytes, seen}:
178      retained.step(entries, payload_bytes, snapshots, retained_bytes,
179        scalar, is_digit, seen)
180    case CursorDigits{entries, payload_bytes, snapshots, retained_bytes,
181        cursors, seen}:
182      cursor.step(entries, payload_bytes, snapshots, retained_bytes, cursors,
183        scalar, is_digit)
184    case Invalid{}: Invalid{}

Uses (8)

Used by (1)