summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-11-15 16:19:47 -0500
committerGlenn Smith <glenn@vector35.com>2022-11-16 13:57:49 -0500
commitedc6b36a5f367229faf1ccf81fb075b005a867f7 (patch)
tree403a4c2feda48e417d7fe8871b5adf1a99deb5df /type.cpp
parentacc1d309d20ac4414db230f52cd75d877084b969 (diff)
Implement Type::IsVolatile
Technically part of #2750
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index 6e1300b0..14591649 100644
--- a/type.cpp
+++ b/type.cpp
@@ -532,6 +532,13 @@ Confidence<bool> Type::IsConst() const
}
+Confidence<bool> Type::IsVolatile() const
+{
+ BNBoolWithConfidence result = BNIsTypeVolatile(m_object);
+ return Confidence<bool>(result.value, result.confidence);
+}
+
+
Confidence<Ref<Type>> Type::GetChildType() const
{
BNTypeWithConfidence type = BNGetChildType(m_object);