diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-12-23 13:12:02 -0700 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2026-05-22 16:30:56 -0400 |
| commit | 8d621c51b2797fda7b1dc22243dde611cfc04f68 (patch) | |
| tree | ba5e6a90e644d21d13e75dabcbd0cc747444443a /python/binaryview.py | |
| parent | 08e34ac325743085911f96b62c81d9a1f2127806 (diff) | |
Refactor calling conventions to support correct representation of structures
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 039c94ee..5594b066 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -11047,6 +11047,24 @@ to a the type "tagRECT" found in the typelibrary "winX64common" core.free_string(string) return result, StringType(string_type.value) + def deref_parameter_named_type_references(self, params: List['_types.FunctionParameter']): + result = [] + for param in params: + if param.type is None: + ty = None + else: + ty = param.type.deref_named_type_reference(self).with_confidence(param.type.confidence) + result.append(_types.FunctionParameter(ty, param.name, param.location, param.location_source)) + return result + + def deref_return_value_named_type_references(self, value: '_types.ReturnValue'): + if value.type is None: + ty = None + else: + ty = value.type.deref_named_type_reference(self).with_confidence(value.type.confidence) + return _types.ReturnValue(ty, value.location) + + class BinaryReader: """ ``class BinaryReader`` is a convenience class for reading binary data. |
