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

Method _handle_to_instance

python/renderlayer.py:52–56  ·  view source on GitHub ↗
(self, handle)

Source from the content-addressed store, hash-verified

50 return self._handle_to_instance(handle)
51
52 def _handle_to_instance(self, handle):
53 handle_ptr = ctypes.cast(handle, ctypes.c_void_p)
54 if handle_ptr.value in RenderLayer._registered_instances:
55 return RenderLayer._registered_instances[handle_ptr.value]
56 return CoreRenderLayer(handle)
57
58
59class RenderLayer(metaclass=_RenderLayerMetaclass):

Callers 2

__iter__Method · 0.95
__getitem__Method · 0.95

Calls 1

CoreRenderLayerClass · 0.70

Tested by

no test coverage detected