diff options
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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); |
