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

Method constant

python/variable.py:505–515  ·  view source on GitHub ↗

Create a constant valued PossibleValueSet object. :param int value: Integer value of the constant :rtype: PossibleValueSet

(value: int)

Source from the content-addressed store, hash-verified

503
504 @staticmethod
505 def constant(value: int) -> 'PossibleValueSet':
506 """
507 Create a constant valued PossibleValueSet object.
508
509 :param int value: Integer value of the constant
510 :rtype: PossibleValueSet
511 """
512 result = PossibleValueSet()
513 result._type = RegisterValueType.ConstantValue
514 result._value = value
515 return result
516
517 @staticmethod
518 def constant_ptr(value: int) -> 'PossibleValueSet':

Callers

nothing calls this directly

Calls 1

PossibleValueSetClass · 0.70

Tested by

no test coverage detected