From 8d621c51b2797fda7b1dc22243dde611cfc04f68 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 23 Dec 2025 13:12:02 -0700 Subject: Refactor calling conventions to support correct representation of structures --- python/binaryview.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python/binaryview.py') 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. -- cgit v1.3.1