summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-02-26 22:07:50 -0500
committerGlenn Smith <glenn@vector35.com>2021-07-01 00:06:45 -0400
commit78f177679cfacfcfb4f9ff542cb20a04914aed1f (patch)
treefa90f64155adebba15bb7130e7583e51e73092cf /binaryview.cpp
parenteb1b1db886babc038fb00985718f5869afb44c19 (diff)
Expose Tag::GetId
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 63e73ad1..657a5cd7 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -468,6 +468,15 @@ Tag::Tag(Ref<TagType> type, const std::string& data)
}
+std::string Tag::GetId() const
+{
+ char* id = BNTagGetId(m_object);
+ std::string result = id;
+ BNFreeString(id);
+ return result;
+}
+
+
Ref<TagType> Tag::GetType() const
{
return new TagType(BNTagGetType(m_object));