retdec
|
Abstract class for compressed data. More...
#include <compressed_data.h>
Public Member Functions | |
CompressedData ()=delete | |
CompressedData (const DynamicBuffer &buffer) | |
Constructor. More... | |
CompressedData (const CompressedData &data) | |
Copy constructor. More... | |
virtual | ~CompressedData ()=default |
const DynamicBuffer & | getBuffer () const |
void | setBuffer (const DynamicBuffer &buffer) |
virtual bool | decompress (DynamicBuffer &outputBuffer)=0 |
Protected Attributes | |
DynamicBuffer | _buffer |
Buffer containg the compressed data. More... | |
Private Member Functions | |
CompressedData & | operator= (const CompressedData &) |
Abstract class for compressed data.
The abstract class representing the compressed data.
|
delete |
|
inline |
Constructor.
|
inline |
Copy constructor.
|
virtualdefault |
|
pure virtual |
Pure virtual method for decompressing the data.
outputBuffer | The buffer in which the data is decompressed. |
Implemented in retdec::unpacker::Nrv2eData, retdec::unpacker::Nrv2dData, retdec::unpacker::Nrv2bData, retdec::unpacker::LzmatData, and retdec::unpacker::LzmaData.
|
inline |
Returns the buffer containing compressed data.
|
private |
|
inline |
Changes the compressed data buffer to another buffer.
buffer | New buffer to set. |
|
protected |
Buffer containg the compressed data.