def stream.blocks.header.result

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

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base

1660# Drops the legacy materialized-entry field when opening a block reader.
1661def stream.blocks.header.result(
1662  result: Result<&1, &1, Error, StreamState>
1663) -> Result<&1, &1, Error, BlockStreamState>:
1664  match result:
1665    case Fail{error}:
1666      Fail{error}
1667    case Done{StreamState{level, total, block_count, remaining,
1668        entries_left, previous, _, hashes}}:
1669      Done{BlockStreamState{level, total, block_count, remaining,
1670        entries_left, previous, hashes}}

Uses (4)

Used by (1)