Look up a platform from a given BNPlatform handle :param handle: BNPlatform pointer :return: Platform instance responsible for this handle
(cls, handle)
| 774 | |
| 775 | @classmethod |
| 776 | def _from_cache(cls, handle) -> 'Platform': |
| 777 | """ |
| 778 | Look up a platform from a given BNPlatform handle |
| 779 | :param handle: BNPlatform pointer |
| 780 | :return: Platform instance responsible for this handle |
| 781 | """ |
| 782 | global _platform_cache |
| 783 | return _platform_cache.get(ctypes.addressof(handle.contents)) or cls(handle) |
| 784 | |
| 785 | def adjust_type_parser_input( |
| 786 | self, |
no test coverage detected