def snapshot.get.decoded
import mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend as Operationimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
169def snapshot.get.decoded(
170 payload: Bytes.Bytes,
171 snapshot_id: U32,
172 length: U32
173) -> Decision:
174 snapshot.get.decision(snapshot_id,
175 snapshot.get.key.sliced(Bytes.slice(payload, 4, U32.sub(length, 4))))