Look up a representation type from a given BNLineFormatter handle :param handle: BNLineFormatter pointer :return: Formatter instance responsible for this handle
(cls, handle)
| 282 | |
| 283 | @classmethod |
| 284 | def _from_cache(cls, handle) -> 'LineFormatter': |
| 285 | """ |
| 286 | Look up a representation type from a given BNLineFormatter handle |
| 287 | :param handle: BNLineFormatter pointer |
| 288 | :return: Formatter instance responsible for this handle |
| 289 | """ |
| 290 | global _formatter_cache |
| 291 | return _formatter_cache.get(ctypes.addressof(handle.contents)) or cls(handle) |