MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CopyI2NPMessage

Function CopyI2NPMessage

libi2pd/I2NPProtocol.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 std::shared_ptr<I2NPMessage> CopyI2NPMessage (std::shared_ptr<I2NPMessage> msg)
105 {
106 if (!msg) return nullptr;
107 auto newMsg = NewI2NPMessage (msg->len);
108 newMsg->offset = msg->offset;
109 *newMsg = *msg;
110 return newMsg;
111 }
112
113 std::shared_ptr<I2NPMessage> CreateTunnelTestMsg (uint32_t msgID)
114 {

Callers 1

FloodMethod · 0.85

Calls 1

NewI2NPMessageFunction · 0.85

Tested by

no test coverage detected