def parse.blocks.accumulate.records
mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:1310
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
1310def parse.blocks.accumulate.records(
1311 cursor: Bytes.Cursor,
1312 +remaining: Nat,
1313 +entries_left: U32,
1314 entries: List<&2, MemTable.Entry>,
1315 hashes: List<&1, Bytes.Bytes>,
1316 records: ParsedEntries
1317) -> BlockDecision:
1318 match records:
1319 case Entries{reversed, previous}:
1320 parse.blocks.accumulate.records.last(cursor, entries_left, entries,
1321 hashes, reversed, previous, Nat.is_eq(remaining, 1n))