From 5c82c6036e04936e253d2031f73f8218bbed06aa Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 3 Sep 2021 11:12:56 -0400 Subject: Commonize _to_core_struct/_from_core_struct Improve implementation of immutable_copy/mutable_copy --- type.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 49c820bd..b6da4262 100644 --- a/type.cpp +++ b/type.cpp @@ -1157,6 +1157,16 @@ Confidence> TypeBuilder::GetChildType() const } +TypeBuilder& TypeBuilder::SetChildType(const Confidence>& child) +{ + BNTypeWithConfidence childType; + childType.type = child->GetObject(); + childType.confidence = child.GetConfidence(); + BNTypeBuilderSetChildType(m_object, &childType); + return *this; +} + + Confidence> TypeBuilder::GetCallingConvention() const { BNCallingConventionWithConfidence cc = BNGetTypeBuilderCallingConvention(m_object); -- cgit v1.3.1