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

Method _from_core_struct

python/binaryview.py:109–119  ·  view source on GitHub ↗
(cls, view: 'BinaryView', ref: core.BNReferenceSource)

Source from the content-addressed store, hash-verified

107
108 @classmethod
109 def _from_core_struct(cls, view: 'BinaryView', ref: core.BNReferenceSource) -> 'ReferenceSource':
110 if ref.func:
111 func = _function.Function(view, core.BNNewFunctionReference(ref.func))
112 else:
113 func = None
114 if ref.arch:
115 arch = architecture.CoreArchitecture._from_cache(ref.arch)
116 else:
117 arch = None
118
119 return ReferenceSource(func, arch, ref.addr)
120
121 @property
122 def llil(self) -> Optional[lowlevelil.LowLevelILInstruction]:

Callers 15

_type_definedMethod · 0.45
_type_undefinedMethod · 0.45
_type_ref_changedMethod · 0.45
__iter__Method · 0.45
internal_namespaceMethod · 0.45
external_namespaceMethod · 0.45
namespacesMethod · 0.45
type_namesMethod · 0.45
get_code_refsMethod · 0.45

Calls 3

FunctionMethod · 0.80
ReferenceSourceClass · 0.70
_from_cacheMethod · 0.45

Tested by

no test coverage detected