| 363 | return core.BNSettingsGetDouble(self.handle, key, view_handle, func_handle, None) |
| 364 | |
| 365 | def get_integer(self, key: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None) -> int: |
| 366 | view_handle = None |
| 367 | func_handle = None |
| 368 | if resource is not None: |
| 369 | if isinstance(resource, binaryview.BinaryView): |
| 370 | view_handle = resource.handle |
| 371 | elif isinstance(resource, function.Function): |
| 372 | func_handle = resource.handle |
| 373 | else: |
| 374 | raise TypeError("Expected resource to be either a BinaryView or a Function.") |
| 375 | return core.BNSettingsGetUInt64(self.handle, key, view_handle, func_handle, None) |
| 376 | |
| 377 | def get_string(self, key: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None) -> str: |
| 378 | view_handle = None |