diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-17 20:11:39 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | b765ffd736ecbfbb7c19b7e166a021ac46a9eeb8 (patch) | |
| tree | 674f5aaa6a8541e29a407511f1db37e07074e436 /binaryninjaapi.h | |
| parent | c980b77666bba9e4480c44de72cc8de0ca10c8e4 (diff) | |
[BNTL] Allow decompressing standalone TypeLibrary objects
Previously you must have written the type library to disk
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 331a24c0..a7a64f4c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -19934,21 +19934,6 @@ 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 @@ -19976,9 +19961,17 @@ namespace BinaryNinja { /*! Saves a finalized type library instance to file \param path + \return True if the type library was successfully written to the file */ bool WriteToFile(const std::string& path); + /*! Decompresses the type library to a JSON file + + \param path + \return True if the type library was successfully decompressed + */ + bool DecompressToFile(const std::string& path); + /*! The Architecture this type library is associated with \return |
