def snapshot.get.payload

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:268

import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

268# Prefixes a byte key with its fixed-width snapshot token.
269def snapshot.get.payload(snapshot_id: U32, key: Bytes.Bytes) -> Bytes.Bytes:
270  Bytes.concat([Protocol.snapshot.id.bytes(snapshot_id), key])

Uses (5)

Used by (1)