ByteDurableDb.snapshot.root.manifest.result: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb Lines 2585-2612 of mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&start_line=2585&end_line=2612 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest import mylsm-lsm-store@0.6.0.1/src/ByteManifestIo.bend as ByteManifestIo def snapshot.root.manifest.result( read_path: String, handle: Handle, delta: List<&1, ByteMemTable.Entry>, delta_bytes: Nat, max_bytes: Nat, result: Result<&1, &1, ByteManifestIo.Error, ByteManifest.ManifestValue> ) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>): match result: case Fail{ByteManifestIo.Invalid{_}}: IO.pure(Handle & Result<&1, &1, Error, SnapshotRoot>, (handle, Fail{Corruption{"byte manifest validation failed"}})) case Fail{ByteManifestIo.Host{code, message}}: IO.pure(Handle & Result<&1, &1, Error, SnapshotRoot>, (handle, Fail{Io{code, message}})) case Done{ByteManifest.Empty{}}: snapshot.root.reservation(handle, None{}, None{}, 0n, delta_bytes, delta, max_bytes) case Done{ByteManifest.GenerationEmpty{}}: snapshot.root.reservation(handle, None{}, None{}, 0n, delta_bytes, delta, max_bytes) case Done{ByteManifest.HasSst{}}: snapshot.root.file.size(handle, path.clone.pair(read_path ++ "/SST"), None{}, delta, delta_bytes, max_bytes) case Done{ByteManifest.GenerationSst{file_id}}: snapshot.root.generation.file(handle, read_path, delta, delta_bytes, max_bytes, ByteManifest.clone.file.id(file_id)) Uses (21): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=SnapshotRoot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=path.clone.pair https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=snapshot.root.file.size https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=snapshot.root.generation.file https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend&name=snapshot.root.reservation https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=ManifestValue https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=clone.file.id https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifestIo.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=Entry