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

Method LoadBuffer

libi2pd/RouterInfo.cpp:609–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607 }
608
609 const uint8_t * RouterInfo::LoadBuffer (const std::string& fullPath)
610 {
611 if (!m_Buffer)
612 {
613 if (LoadFile (fullPath))
614 LogPrint (eLogDebug, "RouterInfo: Buffer for ", GetIdentHashAbbreviation (GetIdentHash ()), " loaded from file");
615 else
616 return nullptr;
617 }
618 return m_Buffer->data ();
619 }
620
621 bool RouterInfo::SaveToFile (const std::string& fullPath, std::shared_ptr<Buffer> buf)
622 {

Callers 1

Calls 2

LogPrintFunction · 0.85
GetIdentHashAbbreviationFunction · 0.85

Tested by

no test coverage detected