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

Method CreateComponentWithName

binaryview.cpp:3630–3639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3628
3629
3630Ref<Component> BinaryView::CreateComponentWithName(std::string name, std::string parentGUID)
3631{
3632 BNComponent* bnComponent;
3633 if (!parentGUID.empty())
3634 bnComponent = BNCreateComponentWithParentAndName(m_object, parentGUID.c_str(), name.c_str());
3635 else
3636 bnComponent = BNCreateComponentWithName(m_object, name.c_str());
3637
3638 return new Component(bnComponent);
3639}
3640
3641
3642Ref<Component> BinaryView::CreateComponentWithName(std::string name, Ref<Component> parent)

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
emptyMethod · 0.45
GetGuidMethod · 0.45

Tested by

no test coverage detected