def registry.reserve.count

mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:335

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

335# Duplicates the byte counter so an admitted decision can update while rejection preserves it.
336def registry.reserve.count(
337  count_copies: Nat & Nat,
338  retained_bytes: Nat,
339  requested_bytes: Nat,
340  max_snapshots: Nat,
341  max_retained_bytes: Nat
342) -> RegistryDecision:
343  match count_copies:
344    case (count_input, count_original):
345      registry.reserve.input(((count_input, count_original),
346        nat.duplicate(retained_bytes)), requested_bytes,
347        max_snapshots, max_retained_bytes)

Uses (6)

Used by (1)