ByteBlockBuilder.decide.current: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockBuilder.bend as ByteBlockBuilder Lines 17-26 of mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockBuilder.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockBuilder.bend&start_line=17&end_line=26 import Base # Chooses whether a record fits the current block without exceeding its cap. def decide.current( used_bytes: Nat, record_bytes: Nat, fits_current: Bool ) -> Decision: match fits_current: case True{}: Append{Nat.add(used_bytes, record_bytes)} case False{}: decide.rollover(record_bytes, Nat.is_eq(used_bytes, 0n)) Uses (6): 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=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockBuilder.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockBuilder.bend&name=decide.rollover