def item

mylsm-lsm-store@0.6.0.1 · src/transfer/BackupCursor.bend:168

import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend as BackupCursor
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/VisibleCursor.bend as VisibleCursor
import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup

168# Adds one cursor item without exceeding the declared total or block capacity.
169def item(
170  entry: ByteMemTable.Entry,
171  cursor: Maybe<&1, VisibleCursor.Cursor>,
172  pending: List<&1, ByteMemTable.Entry>,
173  seen: Nat,
174  pending_count: Nat,
175  expected: Nat,
176  entry_count: U32,
177  block_count: U32,
178  block_index: U32
179) -> Step:
180  item.counted(entry, cursor, pending, seen, pending_count,
181    entry_count, block_count, block_index,
182    Backup.nat.duplicate.pair(expected))

Uses (9)

Used by (2)