Filter without any compression. More...
Public Member Functions | |
LZMALoadFilter (LoadFilter *chain) | |
Initialise this filter. | |
~LZMALoadFilter () | |
Clean everything up. | |
size_t | Read (byte *buf, size_t size) |
Read a given number of bytes from the savegame. | |
Data Fields | |
lzma_stream | lzma |
Stream state that we are reading from. | |
byte | fread_buf [MEMORY_CHUNK_SIZE] |
Buffer for reading from the file. |
Filter without any compression.
Definition at line 2138 of file saveload.cpp.
LZMALoadFilter::LZMALoadFilter | ( | LoadFilter * | chain | ) | [inline] |
Initialise this filter.
chain | The next filter in this chain. |
Definition at line 2146 of file saveload.cpp.
LZMALoadFilter::~LZMALoadFilter | ( | ) | [inline] |
size_t LZMALoadFilter::Read | ( | byte * | buf, | |
size_t | len | |||
) | [inline, virtual] |
Read a given number of bytes from the savegame.
buf | The bytes to read. | |
len | The number of bytes to read. |
Implements LoadFilter.
Definition at line 2158 of file saveload.cpp.
References LoadFilter::chain, fread_buf, lzma, LoadFilter::Read(), and SlError().