def next.block.header

mylsm-lsm-store@0.6.0.1 · src/scan/ByteBlockReader.bend:1394

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

1394def next.block.header(
1395  file: File,
1396  state: State,
1397  result: Result<&1, &1, U32 & String, Bytes.Bytes>
1398) -> IO(Result<&1, &1, U32 & String, Step>):
1399  match result:
1400    case Fail{error}:
1401      close.failed(file, error)
1402    case Done{block_header}:
1403      next.block.header.copies(file, state,
1404        ByteSstFile.clone.split(block_header))

Uses (12)

Used by (1)