mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
in-meory storage for router profiles
This commit is contained in:
parent
86fc12e395
commit
48a3c767e5
4 changed files with 74 additions and 26 deletions
|
@ -251,7 +251,7 @@ namespace data
|
|||
bool SaveToFile (const std::string& fullPath);
|
||||
|
||||
std::shared_ptr<RouterProfile> GetProfile () const;
|
||||
void SaveProfile () { if (m_Profile) m_Profile->Save (GetIdentHash ()); };
|
||||
void DropProfile () { m_Profile = nullptr; };
|
||||
|
||||
void Update (const uint8_t * buf, size_t len);
|
||||
void DeleteBuffer () { m_Buffer = nullptr; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue