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

Method NewPacket

libi2pd/Streaming.h:342–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 std::shared_ptr<I2NPMessage> CreateDataMessage (const uint8_t * payload, size_t len, uint16_t toPort, bool checksum = true, bool gzip = false);
341
342 Packet * NewPacket () { return m_PacketsPool.Acquire(); }
343 void DeletePacket (Packet * p) { return m_PacketsPool.Release(p); }
344 uint32_t GetRandom ();
345

Callers 2

SendBufferMethod · 0.80
SendCloseMethod · 0.80

Calls 1

AcquireMethod · 0.45

Tested by

no test coverage detected