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

Method AddExternalLocation

binaryview.cpp:5423–5436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5421
5422
5423Ref<ExternalLocation> BinaryView::AddExternalLocation(Ref<Symbol> sourceSymbol, Ref<ExternalLibrary> library, std::optional<std::string> targetSymbol, std::optional<uint64_t> targetAddress, bool isAuto)
5424{
5425 BNExternalLocation* loc = BNBinaryViewAddExternalLocation(m_object,
5426 sourceSymbol->GetObject(),
5427 library ? library->m_object : nullptr,
5428 targetSymbol.has_value() ? targetSymbol.value().c_str() : nullptr,
5429 targetAddress.has_value() ? &targetAddress.value() : nullptr,
5430 isAuto
5431 );
5432
5433 if (!loc)
5434 return nullptr;
5435 return new ExternalLocation(BNNewExternalLocationReference(loc));
5436}
5437
5438
5439void BinaryView::RemoveExternalLocation(Ref<Symbol> sourceSymbol)

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
GetObjectMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected