def preview.stage

mylsm-lsm-store@0.6.0.1 · src/scan/VisibleCursor.bend:436

import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursor
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable

436def preview.stage(entry: ByteMemTable.Entry, cursor: Cursor,
437  payload_bytes: Nat) -> Preview:
438  match cursor:
439    case Active{base, pending, delta, bounds, _}:
440      PreviewReady{Active{base, pending, delta, bounds, Some{entry}},
441        payload_bytes}
442    case _:
443      PreviewReady{cursor, payload_bytes}

Uses (5)

Used by (1)