retdec
|
LZMA compressed data. More...
#include <lzma_data.h>
Public Member Functions | |
LzmaData ()=delete | |
LzmaData (const DynamicBuffer &buffer, uint8_t pb, uint8_t lp, uint8_t lc) | |
LzmaData (const LzmaData &data)=delete | |
virtual bool | decompress (DynamicBuffer &outputBuffer) override |
![]() | |
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) |
Private Member Functions | |
LzmaData & | operator= (const LzmaData &) |
bool | checkProperties () |
bool | decodeBit (uint32_t pos, uint32_t &bit) |
bool | decodeLiteral (uint32_t pos, uint8_t &returnByte, bool useRep, uint32_t rep) |
void | rotateRep (uint32_t rep[4], uint32_t amount) |
bool | decodeLen (uint32_t pos, uint32_t posState, uint32_t &len) |
bool | decodeBitTree (uint32_t pos, uint32_t rep, uint32_t add, uint32_t &ret) |
bool | decodeDirectBits (uint32_t count, uint32_t initValue, uint32_t &ret) |
bool | decodeRevBitTree (uint32_t pos, uint32_t rep, uint32_t &posSlot) |
Private Attributes | |
uint32_t | _readPos |
The position of reading from the input buffer. More... | |
uint8_t | _pb |
uint8_t | _lp |
uint8_t | _lc |
Parameters of LZMA compression. More... | |
RangeDecoder | _rangeDecoder |
Range decoder. More... | |
Additional Inherited Members | |
![]() | |
DynamicBuffer | _buffer |
Buffer containg the compressed data. More... | |
LZMA compressed data.
Represents the LZMA compressed data with the option to decompress such data.
|
delete |
retdec::unpacker::LzmaData::LzmaData | ( | const DynamicBuffer & | buffer, |
uint8_t | pb, | ||
uint8_t | lp, | ||
uint8_t | lc | ||
) |
Constructor.
buffer | The LZMA compressed data. |
pb | Property of LZMA. |
lp | Property of LZMA. |
lc | Property of LZMA. |
|
delete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Decompresses the LZMA compressed data.
@ param outputBuffer The buffer in which the datas are decompressed.
Implements retdec::unpacker::CompressedData.
|
private |
|
private |
Parameters of LZMA compression.
|
private |
|
private |
|
private |
Range decoder.
|
private |
The position of reading from the input buffer.