ByteManifest.decode.checksum.compare: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest Lines 172-179 of mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&start_line=172&end_line=179 import Base # Returns the decoded value only when its body checksum is valid. def decode.checksum.compare( value: ManifestValue, valid: Bool ) -> Result<&1, &1, Error, ManifestValue>: match valid: case True{}: Done{value} case False{}: Fail{ChecksumMismatch{}} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=ManifestValue