def finish.concat.check

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:1739

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

1739def finish.concat.check(
1740  bytes: Bytes.Bytes,
1741  valid: Bool
1742) -> Result<&1, &1, Error, Sstable.Table>:
1743  match valid:
1744    case True{}:
1745      parse.file(bytes)
1746    case False{}:
1747      Fail{Malformed{}}

Uses (6)

Used by (1)