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

Function EntryToApi

view/sharedcache/core/ffi.cpp:133–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133BNSharedCacheEntry EntryToApi(const CacheEntry& entry)
134{
135 BNSharedCacheEntry apiEntry;
136 apiEntry.path = BNAllocString(entry.GetFilePath().c_str());
137 apiEntry.name = BNAllocString(entry.GetFileName().c_str());
138 apiEntry.entryType = EntryTypeToApi(entry.GetType());
139 const auto& mappings = entry.GetMappings();
140 apiEntry.mappingCount = mappings.size();
141 apiEntry.mappings = new BNSharedCacheMappingInfo[mappings.size()];
142 for (size_t i = 0; i < mappings.size(); i++)
143 apiEntry.mappings[i] = MappingToApi(mappings[i]);
144 return apiEntry;
145}
146
147extern "C"
148{

Callers 1

Calls 6

EntryTypeToApiFunction · 0.85
c_strMethod · 0.80
GetFileNameMethod · 0.80
MappingToApiFunction · 0.70
GetTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected