def stream.block.result

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

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

1506def stream.block.result(
1507  state: StreamState,
1508  pair: Bytes.Cursor & Result<&1, &1, Error, ParsedBlock>
1509) -> Result<&1, &1, Error, StreamState>:
1510  match pair:
1511    case (_, Fail{error}):
1512      Fail{error}
1513    case (cursor, Done{block}):
1514      stream.block.consumed(Bytes.Cursor.remaining(cursor), state, block)

Uses (9)

Used by (1)