def mode.read.copies
import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorOpenCodec.bend as CursorOpenCodecimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
357# Reads the mode from a copy while retaining the request for bound slicing.
358def mode.read.copies(
359 sources: Bytes.Bytes & Bytes.Bytes,
360 snapshot_id: U32,
361 total: U32
362) -> Decision:
363 match sources:
364 case (payload, reader):
365 mode.read.field(payload, snapshot_id, total,
366 Bytes.get.u32be(reader, 4))