def decode.payload.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
411# Decodes an owner token from one input copy and retains another for mode parsing.
412def decode.payload.copies(
413 sources: Bytes.Bytes & Bytes.Bytes,
414 total: U32
415) -> Decision:
416 match sources:
417 case (payload, reader):
418 decode.payload.field(payload, total, Bytes.get.u32be(reader, 0))