Protocol.response.encode.payload: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol Lines 183-196 of mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&start_line=183&end_line=196 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def response.encode.payload( version: U32, generation: U32, request_id: U32, status_code: U32, payload: Bytes.Bytes ) -> Bytes.Bytes: match payload: case Bytes.Bytes{+length, buffer}: Bytes.Bytes{U32.add(length, 28), response.encode.header( Bytes.dst(Bytes.copy(length, buffer, Bytes.alloc(U32.add(length, 28)), 0, 28)), version, generation, request_id, status_code, length)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=alloc https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=copy https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=dst https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&name=response.encode.header