From 78f177679cfacfcfb4f9ff542cb20a04914aed1f Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 26 Feb 2021 22:07:50 -0500 Subject: Expose Tag::GetId --- binaryview.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'binaryview.cpp') 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 type, const std::string& data) } +std::string Tag::GetId() const +{ + char* id = BNTagGetId(m_object); + std::string result = id; + BNFreeString(id); + return result; +} + + Ref Tag::GetType() const { return new TagType(BNTagGetType(m_object)); -- cgit v1.3.1