def index_bytes

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

import mylsm-lsm-store@0.6.0.1/src/scan/BlockIndexFormatPolicy.bend as BlockIndexFormatPolicy
import Base

22# Computes index bytes from fixed records and the packed separator region.
23def index_bytes(block_count: Nat, separator_bytes: Nat) -> Nat:
24  Nat.add(Nat.add(header_bytes(), Nat.mul(block_count, entry_bytes())),
25    separator_bytes)

Uses (5)

Used by (0)

No other definition uses this definition.