| 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 | { |
no test coverage detected