def file.block.raw.parts

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:498

import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend as SHA
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

498def file.block.raw.parts(
499  headers: Bytes.Bytes & Bytes.Bytes,
500  frames: Bytes.Bytes & Bytes.Bytes
501) -> Result<&1, &1, Error, Bytes.Bytes>:
502  match headers:
503    case (header_output, header_hash):
504      match frames:
505        case (frame_output, frame_hash):
506          Done{Bytes.concat([header_output, frame_output,
507            SHA.sha256_packed_bytes(Bytes.concat([header_hash, frame_hash]))])}

Uses (8)

Used by (1)