From 35adefaa9d1ecf5e8c09a787dbd6bda1d1a49325 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 5 Apr 2023 13:54:44 -0400 Subject: Add APIs for dumping the contents of TypeLibraries --- binaryninjaapi.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') 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 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 LoadFromFile(const std::string& path); -- cgit v1.3.1