diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-13 19:18:46 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | 8d5c0136c609564739527a528b9c4d9a6d6721ba (patch) | |
| tree | 7a00e5ee669780405910b5b9ea323a29c8868093 /python | |
| parent | 5afb1efdf8ddfa5074af06869302b04fad878517 (diff) | |
[Python] Add missing `TypeLibrary.duplicate` API
Diffstat (limited to 'python')
| -rw-r--r-- | python/typelibrary.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py index 65aabb12..14b882ea 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -139,6 +139,14 @@ class TypeLibrary: """Sets the name of a type library instance that has not been finalized""" core.BNSetTypeLibraryName(self.handle, value) + def duplicate(self) -> 'TypeLibrary': + """ + Creates a new type library instance with a random GUID and the same data as the current instance. + + :rtype: TypeLibrary + """ + return TypeLibrary(core.BNDuplicateTypeLibrary(self.handle)) + @property def dependency_name(self) -> Optional[str]: """ |
