(self, value)
| 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) |
nothing calls this directly
no test coverage detected