summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2023-04-05 13:54:44 -0400
committerPeter LaFosse <peter@vector35.com>2023-04-18 08:43:10 -0400
commit35adefaa9d1ecf5e8c09a787dbd6bda1d1a49325 (patch)
treef4c313f35ec1ab5e0534f525b6850acc77170a82 /binaryninjaapi.h
parent69e005b330a1c71978096e9f98f625e481725a14 (diff)
Add APIs for dumping the contents of TypeLibraries
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 5f2987bf..1a3dcb53 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -14907,10 +14907,25 @@ namespace BinaryNinja {
*/
TypeLibrary(Ref<Architecture> arch, const std::string& name);
+ /*! Decompresses a type library from a file
+
+ \param path
+ \return The string contents of the decompressed type library
+ */
+ std::string Decompress(const std::string& path);
+
+ /*! Decompresses a type library from a file
+
+ \param path
+ \param output
+ \return True if the type library was successfully decompressed
+ */
+ static bool DecompressToFile(const std::string& path, const std::string& output);
+
/*! Loads a finalized type library instance from file
\param path
- \return
+ \return True if the type library was successfully loaded
*/
static Ref<TypeLibrary> LoadFromFile(const std::string& path);