SstFile.parse.blocks.go: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile Lines 1387-1411 of mylsm-lsm-store@0.6.0.1/src/SstFile.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&start_line=1387&end_line=1411 import Base import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def parse.blocks.go( remaining: Nat, decision: BlockDecision, +level: U32, +total: U32, +block_count: U32 ) -> Result<&1, &1, Error, Sstable.Table>: match remaining: case 0n: Fail{Malformed{}} case 1n++rest: match decision: case BlockRejected{error}: Fail{error} case BlockOutOfBounds{}: Fail{Malformed{}} case BlockFinish{cursor, entries, hashes}: parse.footer.magic(Bytes.Cursor.u32be(cursor), level, total, block_count, entries, hashes) case BlockContinue{cursor, entries_left, previous, entries, hashes}: parse.blocks.go(rest, parse.blocks.decision( parse.block.read(parse.block(cursor, previous)), rest, entries_left, entries, hashes), level, total, block_count) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor.u32be https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=BlockDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=parse.block https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=parse.block.read https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=parse.blocks.decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=parse.footer.magic https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Sstable.bend&name=Table