def parse.multi.block.apply
mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:1666
import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1666def parse.multi.block.apply(
1667 record_counts: Nat & Nat,
1668 table: ByteMemTable.Table,
1669 mutations: List<&1, ByteWal.Mutation>,
1670 file: Bytes.Bytes,
1671 index_offset: Nat,
1672 next_block: Nat,
1673 block_count: Nat,
1674 level: U32,
1675 total: Nat,
1676 decoded: Nat
1677) -> Result<&1, &1, Error, MultiRead>:
1678 match record_counts:
1679 case (for_decode, for_total):
1680 parse.multi.table.updated(decode.apply(for_decode, table, mutations),
1681 file, index_offset, next_block, block_count, level, total, decoded,
1682 for_total)