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

Method _from_cache

python/lineformatter.py:284–291  ·  view source on GitHub ↗

Look up a representation type from a given BNLineFormatter handle :param handle: BNLineFormatter pointer :return: Formatter instance responsible for this handle

(cls, handle)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected