From a7fd2f8080123ddcbb51fdcc3d3e786e60a111b5 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 1 Apr 2024 15:19:59 -0400 Subject: Add md1rom binary view with pure Rust lzma implementation --- binaryninjaapi.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 14f38395..b27c8ca8 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2114,6 +2114,33 @@ namespace BinaryNinja { \returns Whether decompression was successful */ bool ZlibDecompress(DataBuffer& output) const; + + /*! Decompress the contents of this buffer via LZMA compression + + @threadunsafe + + \param[out] output Output DataBuffer the decompressed contents will be stored in. + \returns Whether decompression was successful + */ + bool LzmaDecompress(DataBuffer& output) const; + + /*! Decompress the contents of this buffer via LZMA2 compression + + @threadunsafe + + \param[out] output Output DataBuffer the decompressed contents will be stored in. + \returns Whether decompression was successful + */ + bool Lzma2Decompress(DataBuffer& output) const; + + /*! Decompress the contents of this buffer via XZ compression + + @threadunsafe + + \param[out] output Output DataBuffer the decompressed contents will be stored in. + \returns Whether decompression was successful + */ + bool XzDecompress(DataBuffer& output) const; }; /*! TemporaryFile is used for creating temporary files, stored (temporarily) in the system's default temporary file -- cgit v1.3.1