OpenTTD Source
20241121-master-g67a0fccfad
|
Interface for filtering a savegame till it is loaded. More...
#include <saveload_filter.h>
Public Member Functions | |
LoadFilter (std::shared_ptr< LoadFilter > chain) | |
Initialise this filter. More... | |
virtual | ~LoadFilter () |
Make sure the writers are properly closed. | |
virtual size_t | Read (uint8_t *buf, size_t len)=0 |
Read a given number of bytes from the savegame. More... | |
virtual void | Reset () |
Reset this filter to read from the beginning of the file. | |
Data Fields | |
std::shared_ptr< LoadFilter > | chain |
Chained to the (savegame) filters. | |
Interface for filtering a savegame till it is loaded.
Definition at line 14 of file saveload_filter.h.
|
inline |
Initialise this filter.
chain | The next filter in this chain. |
Definition at line 22 of file saveload_filter.h.
|
pure virtual |
Read a given number of bytes from the savegame.
buf | The bytes to read. |
len | The number of bytes to read. |
Implemented in PacketReader, LZOLoadFilter, LZMALoadFilter, ZlibLoadFilter, NoCompLoadFilter, and FileReader.