diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-02-26 22:07:50 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2021-07-01 00:06:45 -0400 |
| commit | 78f177679cfacfcfb4f9ff542cb20a04914aed1f (patch) | |
| tree | fa90f64155adebba15bb7130e7583e51e73092cf /binaryview.cpp | |
| parent | eb1b1db886babc038fb00985718f5869afb44c19 (diff) | |
Expose Tag::GetId
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)); |
