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

Class ConstantDataRegisterValue

python/variable.py:199–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198@dataclass(frozen=True, eq=False)
199class ConstantDataRegisterValue(RegisterValue):
200
201 def __repr__(self):
202 if self.type == RegisterValueType.ConstantDataZeroExtendValue:
203 return f"<const data {{zx.{self.size}({self.value:#x})}}>"
204 if self.type == RegisterValueType.ConstantDataSignExtendValue:
205 return f"<const data {{sx.{self.size}({self.value:#x})}}>"
206 if self.type == RegisterValueType.ConstantDataAggregateValue:
207 return f"<const data {{aggregate.{self.size}}} @ {self.value:#x}>"
208 return f"<const data {{invalid}} {self.type} {self.value:#x}>"
209
210
211@dataclass(frozen=True, eq=False)

Callers 1

from_BNRegisterValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected