def parse.blocks.content

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

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

1360def parse.blocks.content(
1361  cursor: Bytes.Cursor,
1362  +remaining: Nat,
1363  +entries_left: U32,
1364  entries: List<&2, MemTable.Entry>,
1365  hashes: List<&1, Bytes.Bytes>,
1366  block: ParsedBlock
1367) -> BlockDecision:
1368  match block:
1369    case ParsedBlock{records, +count, digest}:
1370      parse.blocks.content.fit(cursor, remaining, entries_left,
1371        entries, hashes, count, records, digest, U32.is_le(count, entries_left))

Uses (10)

Used by (1)