def header.control

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

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

198def header.control(header: Bytes.Bytes, status_code: U32) -> Bytes.Bytes:
199  match header:
200    case Bytes.Bytes{24, buffer}:
201      Bytes.set.u32be(Bytes.set.u32be(Bytes.set.u32be(
202        Bytes.Bytes{28, buffer}, 16, 7), 20, 4), 24, status_code)
203    case _: Bytes.new(0)

Uses (7)

Used by (0)

No other definition uses this definition.