retdec
Public Member Functions | Private Member Functions | List of all members
retdec::unpacker::LzmatData Class Reference

#include <lzmat_data.h>

Inheritance diagram for retdec::unpacker::LzmatData:
Inheritance graph
[legend]
Collaboration diagram for retdec::unpacker::LzmatData:
Collaboration graph
[legend]

Public Member Functions

 LzmatData ()=delete
 
 LzmatData (const DynamicBuffer &buffer)
 
 LzmatData (const LzmatData &)=delete
 
virtual bool decompress (DynamicBuffer &outputBuffer) override
 
- Public Member Functions inherited from retdec::unpacker::CompressedData
 CompressedData ()=delete
 
 CompressedData (const DynamicBuffer &buffer)
 Constructor. More...
 
 CompressedData (const CompressedData &data)
 Copy constructor. More...
 
virtual ~CompressedData ()=default
 
const DynamicBuffergetBuffer () const
 
void setBuffer (const DynamicBuffer &buffer)
 

Private Member Functions

LzmatDataoperator= (const LzmatData &)
 
uint8_t get4Bits (uint32_t &pos, bool &unaligned)
 
uint8_t get8Bits (uint32_t pos, bool unaligned)
 
uint16_t get12Bits (uint32_t pos, bool unaligned)
 
uint16_t get16Bits (uint32_t pos, bool unaligned)
 

Additional Inherited Members

- Protected Attributes inherited from retdec::unpacker::CompressedData
DynamicBuffer _buffer
 Buffer containg the compressed data. More...
 

Constructor & Destructor Documentation

◆ LzmatData() [1/3]

retdec::unpacker::LzmatData::LzmatData ( )
delete

◆ LzmatData() [2/3]

retdec::unpacker::LzmatData::LzmatData ( const DynamicBuffer buffer)

◆ LzmatData() [3/3]

retdec::unpacker::LzmatData::LzmatData ( const LzmatData )
delete

Member Function Documentation

◆ decompress()

bool retdec::unpacker::LzmatData::decompress ( DynamicBuffer outputBuffer)
overridevirtual

Pure virtual method for decompressing the data.

Parameters
outputBufferThe buffer in which the data is decompressed.
Returns
True if the decompression ended up successfully, otherwise false.

Implements retdec::unpacker::CompressedData.

◆ get12Bits()

uint16_t retdec::unpacker::LzmatData::get12Bits ( uint32_t  pos,
bool  unaligned 
)
private

◆ get16Bits()

uint16_t retdec::unpacker::LzmatData::get16Bits ( uint32_t  pos,
bool  unaligned 
)
private

◆ get4Bits()

uint8_t retdec::unpacker::LzmatData::get4Bits ( uint32_t &  pos,
bool &  unaligned 
)
private

◆ get8Bits()

uint8_t retdec::unpacker::LzmatData::get8Bits ( uint32_t  pos,
bool  unaligned 
)
private

◆ operator=()

LzmatData& retdec::unpacker::LzmatData::operator= ( const LzmatData )
private

The documentation for this class was generated from the following files: