def stream.block.count
mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:1454
import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1454def stream.block.count(
1455 +level: U32,
1456 +total: U32,
1457 +block_count: U32,
1458 +remaining: U32,
1459 +entries_left: U32,
1460 entries: List<&2, MemTable.Entry>,
1461 hashes: List<&1, Bytes.Bytes>,
1462 records: ParsedEntries,
1463 +count: U32,
1464 digest: Bytes.Bytes,
1465 valid: Bool
1466) -> Result<&1, &1, Error, StreamState>:
1467 match valid:
1468 case False{}:
1469 Fail{Malformed{}}
1470 case True{}:
1471 stream.block.records(level, total, block_count, remaining,
1472 entries_left, entries, hashes, records, count, digest)