SstFile.stream.blocks.footer.parse: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile Lines 1257-1272 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=1257&end_line=1272 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Parses a footer only after the block and entry counts reach zero. def stream.blocks.footer.parse( +level: U32, +total: U32, +block_count: U32, hashes: List<&1, Bytes.Bytes>, bytes: Bytes.Bytes, valid: Bool ) -> Result<&1, &1, Error, Unit>: match valid: case False{}: Fail{Malformed{}} case True{}: stream.blocks.footer.result(parse.footer.magic( Bytes.Cursor.u32be(Bytes.Cursor.new(bytes)), level, total, block_count, Nil{}, hashes)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor.new 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=Error 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/SstFile.bend&name=stream.blocks.footer.result