diff options
| author | Brandon Miller <brandon@vector35.com> | 2024-11-22 08:20:14 -0500 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2024-11-22 08:20:53 -0500 |
| commit | c74fa0d5f974efa4ccd569a821701956063a31e9 (patch) | |
| tree | ed20c1e13e22df9c5d3867294654a28931f4fbe7 /python/variable.py | |
| parent | 3617086969462676272786827089388047502883 (diff) | |
C++ and Python API for Firmware Ninja
Diffstat (limited to 'python/variable.py')
| -rw-r--r-- | python/variable.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/variable.py b/python/variable.py index 7b4121bf..ec8f050d 100644 --- a/python/variable.py +++ b/python/variable.py @@ -114,6 +114,10 @@ class RegisterValue: return ConstantDataRegisterValue(reg_value.value, 0, RegisterValueType(reg_value.state), confidence=confidence, size=reg_value.size) assert False, f"RegisterValueType {reg_value.state} not handled" + @classmethod + def to_BNRegisterValue(cls, reg_value: 'RegisterValue') -> core.BNRegisterValue: + return reg_value._to_core_struct() + @dataclass(frozen=True, eq=False) class Undetermined(RegisterValue): |
