def index_offset
import mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexFormatPolicy.bend as BlockIndexFormatPolicyimport Base
27# Locates the index from the index length retained in the extended footer.
28def index_offset(file_size: Nat, index_length: Nat) -> Nat:
29 Nat.sub(file_size, Nat.add(footer_bytes(), index_length))