def stream.blocks.footer.valid
mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:1274
import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1274
1275def stream.blocks.footer.valid(
1276 state: BlockStreamState,
1277 bytes: Bytes.Bytes,
1278 valid: Bool
1279) -> Result<&1, &1, Error, Unit>:
1280 match state:
1281 case BlockStreamState{+level, +total, +block_count, _, _, _, hashes}:
1282 stream.blocks.footer.parse(level, total, block_count, hashes, bytes, valid)