From edc6b36a5f367229faf1ccf81fb075b005a867f7 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 15 Nov 2022 16:19:47 -0500 Subject: Implement Type::IsVolatile Technically part of #2750 --- type.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 6e1300b0..14591649 100644 --- a/type.cpp +++ b/type.cpp @@ -532,6 +532,13 @@ Confidence Type::IsConst() const } +Confidence Type::IsVolatile() const +{ + BNBoolWithConfidence result = BNIsTypeVolatile(m_object); + return Confidence(result.value, result.confidence); +} + + Confidence> Type::GetChildType() const { BNTypeWithConfidence type = BNGetChildType(m_object); -- cgit v1.3.1