(self, key: str, value: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None, scope: 'SettingsScope' = SettingsScope.SettingsAutoScope)
| 544 | return core.BNSettingsSetUInt64(self.handle, view_handle, func_handle, scope, key, value) |
| 545 | |
| 546 | def set_string(self, key: str, value: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None, scope: 'SettingsScope' = SettingsScope.SettingsAutoScope) -> bool: |
| 547 | view_handle = None |
| 548 | func_handle = None |
| 549 | if resource is not None: |
| 550 | if isinstance(resource, binaryview.BinaryView): |
| 551 | view_handle = resource.handle |
| 552 | elif isinstance(resource, function.Function): |
| 553 | func_handle = resource.handle |
| 554 | else: |
| 555 | raise TypeError("Expected resource to be either a BinaryView or a Function.") |
| 556 | return core.BNSettingsSetString(self.handle, view_handle, func_handle, scope, key, value) |
| 557 | |
| 558 | def set_string_list(self, key: str, value: List[str], resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None, scope: 'SettingsScope' = SettingsScope.SettingsAutoScope) -> bool: |
| 559 | view_handle = None |
no outgoing calls
no test coverage detected