def parse.canonical.comparison

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:1008

import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

1008def parse.canonical.comparison(
1009  entries: List<&1, ByteMemTable.Entry>,
1010  comparison: Bytes.Bytes & Bytes.Bytes & Bool
1011) -> Result<&1, &1, Error, ByteMemTable.Table>:
1012  match comparison:
1013    case (_, _, True{}):
1014      Done{ByteMemTable.Table{entries}}
1015    case (_, _, False{}):
1016      Fail{ChecksumMismatch{}}

Uses (9)

Used by (1)