diff options
| author | Peter LaFosse <peter@vector35.com> | 2024-01-12 16:55:19 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2024-01-15 08:50:51 -0500 |
| commit | ecfc518d025359e7d2cf7e5da30f856916bf48b4 (patch) | |
| tree | 1142480ecbd1ddabe3c2e1893441226619749e50 /binaryview.cpp | |
| parent | 0747711195517010294963997446673189669493 (diff) | |
Add APIs for getting the the base Metadata object for BinaryViews and TypeLibraries
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index dba5bbc7..7d79a839 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -4543,6 +4543,18 @@ void BinaryView::RemoveMetadata(const std::string& key) } +Ref<Metadata> BinaryView::GetMetadata() +{ + return new Metadata(BNBinaryViewGetMetadata(m_object)); +} + + +Ref<Metadata> BinaryView::GetAutoMetadata() +{ + return new Metadata(BNBinaryViewGetAutoMetadata(m_object)); +} + + string BinaryView::GetStringMetadata(const string& key) { auto data = QueryMetadata(key); |
