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

Method CreateRouterInfoBlock

libi2pd/SSU2Session.cpp:2883–2887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881 }
2882
2883 size_t SSU2Session::CreateRouterInfoBlock (uint8_t * buf, size_t len, std::shared_ptr<const i2p::data::RouterInfo> r)
2884 {
2885 if (!r || len < 5) return 0;
2886 return CreateRouterInfoBlock (buf, len, r->GetSharedBuffer ());
2887 }
2888
2889 size_t SSU2Session::CreateRouterInfoBlock (uint8_t * buf, size_t len, std::shared_ptr<const i2p::data::RouterInfo::Buffer> riBuffer)
2890 {

Callers 1

SendLocalRouterInfoMethod · 0.80

Calls 5

htobe16bufFunction · 0.85
GetSharedBufferMethod · 0.80
SetCompressionLevelMethod · 0.80
DeflateMethod · 0.80
GetBufferLenMethod · 0.45

Tested by

no test coverage detected