def header.frame.bytes

mylsm-lsm-store@0.6.0.1 · src/coordinator/Protocol.bend:583

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

583def header.frame.bytes(pair: Bytes.Bytes & Maybe<&2, U32>) -> Maybe<&2, U32>:
584  match pair:
585    case (_, Some{payload_bytes}): Some{U32.add(24, payload_bytes)}
586    case (_, None{}): None{}

Uses (6)

Used by (1)