From b765ffd736ecbfbb7c19b7e166a021ac46a9eeb8 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 17 Feb 2026 20:11:39 -0800 Subject: [BNTL] Allow decompressing standalone TypeLibrary objects Previously you must have written the type library to disk --- binaryninjaapi.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'binaryninjaapi.h') 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 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 -- cgit v1.3.1