def response.encode.header
mylsm-lsm-store@0.6.0.1 · src/coordinator/Protocol.bend:161
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
161def response.encode.header(
162 buffer: Array<U32>,
163 version: U32,
164 generation: U32,
165 request_id: U32,
166 status_code: U32,
167 payload_length: U32
168) -> Array<U32>:
169 Bytes.put.go(4n,
170 Bytes.put.go(4n,
171 Bytes.put.go(4n,
172 Bytes.put.go(4n,
173 Bytes.put.go(4n,
174 Bytes.put.go(4n,
175 Bytes.put.go(4n, buffer, 3, False{}, 1296847670),
176 7, False{}, version),
177 11, False{}, generation),
178 15, False{}, request_id),
179 19, False{}, 7),
180 23, False{}, U32.add(payload_length, 4)),
181 27, False{}, status_code)