ByteBlockReader.measure_key_result: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend as ByteBlockReader Lines 940-953 of mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend&start_line=940&end_line=953 import Base import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal # Handles measure key result. def measure_key_result( result: Result<&1, &1, Wal.Error, ByteWal.ValueMetadata> ) -> Result<&1, &1, U32 & String, ByteWal.ValueMetadata>: match result: case Done{value}: Done{value} case Fail{Wal.ChecksumMismatch{}}: Fail{corruption("byte SST block checksum mismatch")} case Fail{Wal.Malformed{}}: Fail{corruption("malformed byte SST metadata")} case Fail{Wal.TooLarge{}}: Fail{corruption("byte SST metadata exceeds decoder bounds")} case Fail{Wal.InvalidUtf8{}}: Fail{corruption("byte SST metadata contains invalid text")} Uses (7): 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=mylsm-lsm-store@0.6.0.1/src/ByteWal.bend&name=ValueMetadata https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend&name=corruption