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)
| 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 |
no outgoing calls
no test coverage detected