summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp31
1 files changed, 31 insertions, 0 deletions
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<int64_t> Type::GetStackAdjustment() const
{
BNOffsetWithConfidence result = BNGetTypeStackAdjustment(m_object);
@@ -1966,6 +1978,13 @@ TypeBuilder& TypeBuilder::SetParameters(const std::vector<FunctionParameter>& pa
}
+TypeBuilder& TypeBuilder::SetPointerBase(BNPointerBaseType baseType, int64_t baseOffset)
+{
+ BNSetTypeBuilderPointerBase(m_object, baseType, baseOffset);
+ return *this;
+}
+
+
std::set<BNPointerSuffix> 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);