LLVM 20.0.0git
|
Decompressor helps to handle decompression of compressed sections. More...
#include "llvm/Object/Decompressor.h"
Public Member Functions | |
template<class T > | |
Error | resizeAndDecompress (T &Out) |
Resize the buffer and uncompress section data into it. | |
Error | decompress (MutableArrayRef< uint8_t > Output) |
Uncompress section data to raw buffer provided. | |
uint64_t | getDecompressedSize () |
Return memory buffer size required for decompression. | |
Static Public Member Functions | |
static Expected< Decompressor > | create (StringRef Name, StringRef Data, bool IsLE, bool Is64Bit) |
Create decompressor object. | |
Decompressor helps to handle decompression of compressed sections.
Definition at line 21 of file Decompressor.h.
|
static |
Create decompressor object.
Name | Section name. |
Data | Section content. |
IsLE | Flag determines if Data is in little endian form. |
Is64Bit | Flag determines if object is 64 bit. |
Definition at line 21 of file Decompressor.cpp.
References D, and llvm::Data.
Referenced by handleCompressedSection().
Error Decompressor::decompress | ( | MutableArrayRef< uint8_t > | Output | ) |
Uncompress section data to raw buffer provided.
Definition at line 66 of file Decompressor.cpp.
References llvm::MutableArrayRef< T >::data(), llvm::compression::decompress(), and llvm::ArrayRef< T >::size().
Referenced by resizeAndDecompress().
|
inline |
Return memory buffer size required for decompression.
Definition at line 42 of file Decompressor.h.
Resize the buffer and uncompress section data into it.
Out | Destination buffer. |
Definition at line 33 of file Decompressor.h.
References decompress().