def Bytes.snapshot.raw
mylsm-lsm-store@0.6.0.1 · mylsm.bend:815
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as RawByteDb
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
815def Bytes.snapshot.raw(
816 pair: RawByteDb.Handle & Result<&1, &1, RawByteDb.Error, List<&1, ByteMemTable.Entry>>
817) -> Bytes.Handle & Result<&1, &1, Bytes.Error, Bytes.Snapshot>:
818 match pair:
819 case (raw, Fail{error}): (ByteHandle{raw}, Fail{Bytes.error(error)})
820 case (raw, Done{entries}): (ByteHandle{raw}, Done{ByteSnapshot{entries}})