def stream.blocks.next

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

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

1238# Parses and authenticates exactly one SST block at a time.
1239def stream.blocks.next(
1240  state: BlockStreamState,
1241  bytes: Bytes.Bytes
1242) -> Result<&1, &1, Error, BlockStreamOutput>:
1243  match state:
1244    case BlockStreamState{_, _, _, _, _, +previous, _}:
1245      stream.blocks.result(state, parse.block(Bytes.Cursor.new(bytes), previous))

Uses (8)

Used by (0)

No other definition uses this definition.