Snapshot.registry.release.input: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot Lines 395-404 of mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&start_line=395&end_line=404 import Base # Validates positive snapshot ownership and sufficient retained bytes before decrementing. def registry.release.input( copies: (Nat & Nat) & (Nat & Nat), released_bytes: Nat ) -> RegistryReleaseDecision: match copies: case ((count_input, count_original), (bytes_input, bytes_original)): registry.release.input.bytes(nat.duplicate(count_input), count_original, nat.duplicate(bytes_input), bytes_original, nat.duplicate(released_bytes)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=RegistryReleaseDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=nat.duplicate https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=registry.release.input.bytes