ByteSstIo.write.opened: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend as ByteSstIo Lines 315-327 of mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend&start_line=315&end_line=327 import Base import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Dispatches a validated encoding result after opening the temporary file. def write.opened( +directory: String, temporary: String, final_path: String, encoded: Result<&1, &1, ByteSstFile.Error, Bytes.Bytes>, opened: Result<&1, &1, U32 & String, File> ) -> IO(Result<&1, &1, U32 & String, Unit>): match encoded: case Fail{_}: write.encoder.failed(opened) case Done{bytes}: write.encoded(directory, temporary, final_path, bytes, opened) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend&name=write.encoded https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend&name=write.encoder.failed