MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / LoadAll

Method LoadAll

view/kernelcache/core/KernelCache.cpp:2683–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681}
2682
2683KernelCache::ModifiedState KernelCache::ModifiedState::LoadAll(BinaryNinja::BinaryView *dscView, const CacheInfo& cacheInfo)
2684{
2685 uint64_t stateCount = dscView->GetUIntMetadata(KernelCacheMetadata::ModifiedStateCountTag);
2686 KernelCache::ModifiedState state;
2687 for (uint64_t i = 0; i < stateCount; ++i)
2688 {
2689 std::string key = KernelCacheMetadata::ModifiedStateTagPrefix + std::to_string(i);
2690 std::string serialized = dscView->GetStringMetadata(key);
2691 auto thisState = KernelCache::ModifiedState::LoadFromString(serialized);
2692 state.Merge(std::move(thisState));
2693 }
2694 return state;
2695}
2696
2697void KernelCache::ModifiedState::Merge(KernelCache::ModifiedState&& newer)
2698{

Callers

nothing calls this directly

Calls 3

GetUIntMetadataMethod · 0.80
GetStringMetadataMethod · 0.80
MergeMethod · 0.80

Tested by

no test coverage detected