def stream.blocks.complete

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

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base

1207# Validates one block's checksum and returns its bounded entry list.
1208def stream.blocks.complete(
1209  state: BlockStreamState,
1210  block: ParsedBlock,
1211  exact: Bool
1212) -> Result<&1, &1, Error, BlockStreamOutput>:
1213  match block:
1214    case ParsedBlock{records, +count, digest}:
1215      stream.blocks.valid(state, records, count, digest, exact)

Uses (7)

Used by (1)