diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-07-12 22:47:12 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-07-12 22:47:12 -0400 |
| commit | 0e6019edc8c5949de4989ef9577c07913946135b (patch) | |
| tree | cb3a8dbcbd1f2473f32a6797bced0b4a4b59256f /binaryninjaapi.h | |
| parent | c05fbe9e3cffc727536a6df6893116af1570327c (diff) | |
Adding remove_metadata API to BinaryView. Add remove APIs to Metadata
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 83f6b582..01e5f986 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1130,6 +1130,7 @@ namespace BinaryNinja void StoreMetadata(const std::string& key, Ref<Metadata> value); Ref<Metadata> QueryMetadata(const std::string& key); + void RemoveMetadata(const std::string& key); std::string GetStringMetadata(const std::string& key); std::vector<uint8_t> GetRawMetadata(const std::string& key); uint64_t GetUIntMetadata(const std::string& key); @@ -2956,11 +2957,12 @@ namespace BinaryNinja //For key-value data only Ref<Metadata> Get(const std::string& key); bool SetValueForKey(const std::string& key, Ref<Metadata> data); + void RemoveKey(const std::string& key); //For array data only - Ref<Metadata> Get(size_t idx); + Ref<Metadata> Get(size_t index); bool Append(Ref<Metadata> data); - + void RemoveIndex(size_t index); size_t Size() const; bool IsBoolean() const; |
