def Bytes.snapshot.cursor.opened
mylsm-lsm-store@0.6.0.1 · mylsm.bend:891
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as ByteRangeCursor
891def Bytes.snapshot.cursor.opened(
892 entries: List<&1, ByteMemTable.Entry> & List<&1, ByteMemTable.Entry>,
893 bounds: ByteRangeCursor.Bounds & ByteRangeCursor.Bounds
894) -> Bytes.Snapshot & Bytes.Cursor:
895 match entries:
896 case (snapshot_entries, cursor_entries):
897 match bounds:
898 case (seek_bounds, retained_bounds):
899 match seek_bounds:
900 case ByteRangeCursor.Bounds{lower, _, _}:
901 Bytes.snapshot.cursor.ready(snapshot_entries, cursor_entries,
902 ByteMemTable.value.clone(lower), retained_bounds)