diff options
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 9 |
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)); |
