diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-04-05 13:54:44 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-04-18 08:43:10 -0400 |
| commit | 35adefaa9d1ecf5e8c09a787dbd6bda1d1a49325 (patch) | |
| tree | f4c313f35ec1ab5e0534f525b6850acc77170a82 /binaryninjaapi.h | |
| parent | 69e005b330a1c71978096e9f98f625e481725a14 (diff) | |
Add APIs for dumping the contents of TypeLibraries
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 17 |
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); |
