BlockIndexPolicy.entry_valid: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexPolicy.bend as BlockIndexPolicy Lines 59-62 of mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexPolicy.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexPolicy.bend&start_line=59&end_line=62 import Base import mylsm-lsm-store@0.6.0.1/src/coordinator/QueuePolicy.bend as QueuePolicy # Accepts a block range only when it stays between the header and index. def entry_valid(data_offset: Nat, data_length: Nat, index_offset: Nat) -> Bool: entry_valid.copies(QueuePolicy.nat.clone.pair(data_offset), data_length, index_offset) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/QueuePolicy.bend&name=nat.clone.pair https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexPolicy.bend&name=entry_valid.copies