def next.block.length

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

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

1374def next.block.length(
1375  file: File,
1376  state: State,
1377  block_header: Bytes.Bytes,
1378  result: Bytes.Bytes & Maybe<&2, U32>
1379) -> IO(Result<&1, &1, U32 & String, Step>):
1380  match result:
1381    case (_, None{}):
1382      close.failed(file, corruption("invalid byte SST block length"))
1383    case (_, Some{payload_length}):
1384      next.block.length.state(file, state, block_header, payload_length)

Uses (14)

Used by (1)