OpenTTD
|
Filter without any compression. More...
Public Member Functions | |
LZMALoadFilter (LoadFilter *chain) | |
Initialise this filter. More... | |
~LZMALoadFilter () | |
Clean everything up. More... | |
size_t | Read (byte *buf, size_t size) |
Read a given number of bytes from the savegame. More... | |
![]() | |
LoadFilter (LoadFilter *chain) | |
Initialise this filter. More... | |
virtual | ~LoadFilter () |
Make sure the writers are properly closed. More... | |
virtual void | Reset () |
Reset this filter to read from the beginning of the file. | |
Data Fields | |
lzma_stream | lzma |
Stream state that we are reading from. | |
byte | fread_buf [MEMORY_CHUNK_SIZE] |
Buffer for reading from the file. | |
![]() | |
LoadFilter * | chain |
Chained to the (savegame) filters. More... | |
Filter without any compression.
Definition at line 2237 of file saveload.cpp.
|
inline |
Initialise this filter.
chain | The next filter in this chain. |
Definition at line 2245 of file saveload.cpp.
References SlError().
|
inline |
Clean everything up.
Definition at line 2252 of file saveload.cpp.
|
inlinevirtual |
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 2257 of file saveload.cpp.
References ReadBuffer::buf, and SlError().