MCPcopy Create free account
hub / github.com/LUX-Core/lux / writeFrame

Method writeFrame

src/cpp-ethereum/libp2p/RLPXFrameCoder.cpp:149–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void RLPXFrameCoder::writeFrame(uint16_t _protocolType, bytesConstRef _payload, bytes& o_bytes)
150{
151 RLPStream header;
152 uint32_t len = (uint32_t)_payload.size();
153 header.appendRaw(bytes({byte((len >> 16) & 0xff), byte((len >> 8) & 0xff), byte(len & 0xff)}));
154 header.appendList(1) << _protocolType;
155 writeFrame(header, _payload, o_bytes);
156}
157
158void RLPXFrameCoder::writeFrame(uint16_t _protocolType, uint16_t _seqId, bytesConstRef _payload, bytes& o_bytes)
159{

Callers 1

muxMethod · 0.80

Calls 8

copyToMethod · 0.80
croppedMethod · 0.80
sizeMethod · 0.45
ProcessDataMethod · 0.45
dataMethod · 0.45
refMethod · 0.45
swapMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected