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

Method get

python/collaboration/util.py:142–157  ·  view source on GitHub ↗

Access the lazily loaded object. Will construct it if this is the first usage. :param expected_type: Expected type of result, ctypes will try to cast to it :return: Result object

(self, expected_type=object)

Source from the content-addressed store, hash-verified

140 return result
141
142 def get(self, expected_type=object):
143 """
144 Access the lazily loaded object. Will construct it if this is the first usage.
145
146 :param expected_type: Expected type of result, ctypes will try to cast to it
147 :return: Result object
148 """
149 result = core.BNCollaborationLazyTDereference(self._handle)
150 if result is None:
151 return None
152 if type == object:
153 result = ctypes.cast(result, ctypes.py_object)
154 return result
155 else:
156 result = ctypes.cast(result, expected_type)
157 return result

Callers 5

base_fileMethod · 0.95
first_fileMethod · 0.95
second_fileMethod · 0.95
connectMethod · 0.45
escapeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected