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

Method _from_cache

python/platform.py:776–783  ·  view source on GitHub ↗

Look up a platform from a given BNPlatform handle :param handle: BNPlatform pointer :return: Platform instance responsible for this handle

(cls, handle)

Source from the content-addressed store, hash-verified

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,

Callers 15

_get_type_tokensMethod · 0.45
_get_type_stringMethod · 0.45
_from_core_structMethod · 0.45
_tag_addedMethod · 0.45
_tag_updatedMethod · 0.45
_tag_removedMethod · 0.45
get_archMethod · 0.45
get_platformMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected