From 7038897105235644749844401411645589822198 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sat, 11 May 2024 17:15:53 -0400 Subject: Based pointers --- type.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 8731e8ae..9ebdc156 100644 --- a/type.cpp +++ b/type.cpp @@ -686,6 +686,18 @@ uint64_t Type::GetOffset() const } +BNPointerBaseType Type::GetPointerBaseType() const +{ + return BNTypeGetPointerBaseType(m_object); +} + + +int64_t Type::GetPointerBaseOffset() const +{ + return BNTypeGetPointerBaseOffset(m_object); +} + + Confidence Type::GetStackAdjustment() const { BNOffsetWithConfidence result = BNGetTypeStackAdjustment(m_object); @@ -1966,6 +1978,13 @@ TypeBuilder& TypeBuilder::SetParameters(const std::vector& pa } +TypeBuilder& TypeBuilder::SetPointerBase(BNPointerBaseType baseType, int64_t baseOffset) +{ + BNSetTypeBuilderPointerBase(m_object, baseType, baseOffset); + return *this; +} + + std::set TypeBuilder::GetPointerSuffix() const { size_t count = 0; @@ -2058,6 +2077,18 @@ uint32_t TypeBuilder::GetSystemCallNumber() const } +BNPointerBaseType TypeBuilder::GetPointerBaseType() const +{ + return BNTypeBuilderGetPointerBaseType(m_object); +} + + +int64_t TypeBuilder::GetPointerBaseOffset() const +{ + return BNTypeBuilderGetPointerBaseOffset(m_object); +} + + QualifiedName TypeBuilder::GetStructureName() const { BNQualifiedName name = BNTypeBuilderGetStructureName(m_object); -- cgit v1.3.1