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

Method get_component

python/binaryview.py:7073–7083  ·  view source on GitHub ↗

Lookup a Component by its GUID :param guid: GUID of the component to look up :return: The Component with that Guid

(self, guid: str)

Source from the content-addressed store, hash-verified

7071 core.BNNotifyDataRemoved(self.handle, offset, length)
7072
7073 def get_component(self, guid: str) -> Optional[component.Component]:
7074 """
7075 Lookup a Component by its GUID
7076
7077 :param guid: GUID of the component to look up
7078 :return: The Component with that Guid
7079 """
7080 bn_component = core.BNGetComponentByGuid(self.handle, guid)
7081 if bn_component is None:
7082 return None
7083 return component.Component(bn_component)
7084
7085 def get_component_by_path(self, path: str) -> Optional[component.Component]:
7086 """

Callers

nothing calls this directly

Calls 1

ComponentMethod · 0.80

Tested by

no test coverage detected