def index_offset

mylsm-lsm-store@0.6.0.1 · src/scan/BlockIndexFormatPolicy.bend:27

import mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexFormatPolicy.bend as BlockIndexFormatPolicy
import 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))

Uses (4)

Used by (1)