bolar_2 backup

This commit is contained in:
2026-11-27 16:38:11 +08:00
commit e96d6d19df
305 changed files with 43350 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "ports/memory_cache.h"
#include <mutex>
namespace borla {
class NvsMemoryCache final : public IMemoryCache {
public:
bool Load() override;
void CopySnapshot(MemorySnapshot* output) const override;
bool Update(const MemorySnapshot& snapshot) override;
private:
bool LoadNvsLocked();
bool LoadLegacyPartitionLocked();
bool SaveLocked(const MemorySnapshot& snapshot);
mutable std::mutex mutex_;
MemorySnapshot snapshot_{};
};
} // namespace borla