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

Method LoadMetadata

view/sharedcache/core/SharedCacheView.cpp:1054–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void SharedCacheView::LoadMetadata(const Metadata &metadata)
1055{
1056 auto viewMeta = metadata.GetKeyValueStore();
1057 if (viewMeta.find("secondaryFileNames") != viewMeta.end())
1058 {
1059 const auto secondaryFileNames = viewMeta["secondaryFileNames"]->GetStringList();
1060 for (const auto& secondaryFileName : secondaryFileNames)
1061 m_secondaryFileNames.insert(secondaryFileName);
1062 }
1063
1064 if (viewMeta.find("primaryFileName") != viewMeta.end())
1065 m_primaryFileName = viewMeta["primaryFileName"]->GetString();
1066}

Callers

nothing calls this directly

Calls 6

GetKeyValueStoreMethod · 0.80
findMethod · 0.80
GetStringListMethod · 0.80
endMethod · 0.45
insertMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected