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

Method __getitem__

python/renderlayer.py:45–50  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

43 core.BNFreeRenderLayerList(instances)
44
45 def __getitem__(self, value):
46 binaryninja._init_plugins()
47 handle = core.BNGetRenderLayerByName(str(value))
48 if handle is None:
49 raise KeyError(f"'{value}' is not a valid RenderLayer")
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)

Callers

nothing calls this directly

Calls 1

_handle_to_instanceMethod · 0.95

Tested by

no test coverage detected