def block.payload

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

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

425def block.payload(
426  count: U32,
427  result: Result<&1, &1, Error, List<&1, Bytes.Bytes>>
428) -> Result<&1, &1, Error, EncodedBlock>:
429  match result:
430    case Fail{error}:
431      Fail{error}
432    case Done{fragments}:
433      block.payload.total(count, Bytes.length(Bytes.concat(fragments)))

Uses (9)

Used by (1)