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

Method get_integer

python/settings.py:365–375  ·  view source on GitHub ↗
(self, key: str, resource: Optional[Union['binaryview.BinaryView', 'function.Function']] = None)

Source from the content-addressed store, hash-verified

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

Callers 2

initMethod · 0.45
globalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected