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

Method set_string

python/settings.py:546–556  ·  view source on GitHub ↗
(self, key: str, value: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None, scope: 'SettingsScope' = SettingsScope.SettingsAutoScope)

Source from the content-addressed store, hash-verified

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

Callers 2

startFullAnalysisMethod · 0.45
openSelectedFilesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected