diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-11-15 16:19:47 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-11-16 13:57:49 -0500 |
| commit | edc6b36a5f367229faf1ccf81fb075b005a867f7 (patch) | |
| tree | 403a4c2feda48e417d7fe8871b5adf1a99deb5df /type.cpp | |
| parent | acc1d309d20ac4414db230f52cd75d877084b969 (diff) | |
Implement Type::IsVolatile
Technically part of #2750
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |
