summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/typelibrary.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py
index 63e7c33b..adc3919d 100644
--- a/python/typelibrary.py
+++ b/python/typelibrary.py
@@ -55,6 +55,27 @@ class TypeLibrary:
return TypeLibrary(core.BNNewTypeLibrary(arch.handle, name))
@staticmethod
+ def decompress_to_file(path: str, output: str) -> bool:
+ """
+ Decompresses a type library file to a file on disk.
+
+ :param str path:
+ :param str output:
+ :rtype: bool
+ """
+ return core.BNTypeLibraryDecompressToFile(path, output)
+
+ @staticmethod
+ def decompress(path: str) -> str:
+ """
+ Decompresses a type library file to a string.
+
+ :param str path:
+ :rtype: str
+ """
+ return core.BNTypeLibraryDecompressToString(path)
+
+ @staticmethod
def load_from_file(path: str) -> Optional['TypeLibrary']:
"""
Loads a finalized type library instance from file