diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-09-19 17:31:44 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-09-27 21:07:22 -0400 |
| commit | 052b1ea7871c3bfd780a73bcac942db54c95422e (patch) | |
| tree | 23b72e1461868c096580ae3f6ebe02d4add06d26 /python | |
| parent | bafb7665495735a758caf1d6334577bc0860c5d8 (diff) | |
Tag notifications & tag type list optimized
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index ee4a4fb3..4e7b46a7 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3468,7 +3468,13 @@ class BinaryView(object): core.BNFreeTagTypeList(types, count.value) return result - def create_tag(self, type, data): + def create_user_tag(self, type, data): + return self.create_tag(type, data, True) + + def create_auto_tag(self, type, data): + return self.create_tag(type, data, False) + + def create_tag(self, type, data, user=True): """ ``create_tag`` creates a new Tag object but does not add it anywhere @@ -3483,7 +3489,7 @@ class BinaryView(object): >>> bv.add_user_data_tag(here, tag) >>> """ - tag = Tag(core.BNCreateTag(type.handle, data)) + tag = Tag(core.BNCreateTag(type.handle, data, user)) core.BNAddTag(self.handle, tag.handle) return tag |
