def registry.reserve.input
mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:322
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot
import Base
322
323def registry.reserve.input(
324 copies: (Nat & Nat) & (Nat & Nat),
325 requested_bytes: Nat,
326 max_snapshots: Nat,
327 max_retained_bytes: Nat
328) -> RegistryDecision:
329 match copies:
330 case ((count_input, count_original), (bytes_input, bytes_original)):
331 registry.reserve.result(Registry{count_original, bytes_original},
332 reserve(count_input, bytes_input, requested_bytes,
333 max_snapshots, max_retained_bytes))