|
OpenTTD
|
Filter using Zlib compression. More...
Public Member Functions | |
| ZlibLoadFilter (LoadFilter *chain) | |
| Initialise this filter. | |
| ~ZlibLoadFilter () | |
| Clean everything up. | |
| size_t | Read (byte *buf, size_t size) |
| Read a given number of bytes from the savegame. | |
Public Member Functions inherited from LoadFilter | |
| LoadFilter (LoadFilter *chain) | |
| Initialise this filter. | |
| virtual | ~LoadFilter () |
| Make sure the writers are properly closed. | |
| virtual void | Reset () |
| Reset this filter to read from the beginning of the file. | |
Data Fields | |
| z_stream | z |
| Stream state we are reading from. | |
| byte | fread_buf [MEMORY_CHUNK_SIZE] |
| Buffer for reading from the file. | |
Data Fields inherited from LoadFilter | |
| LoadFilter * | chain |
| Chained to the (savegame) filters. | |
Filter using Zlib compression.
Definition at line 2107 of file saveload.cpp.
|
inline |
Initialise this filter.
| chain | The next filter in this chain. |
Definition at line 2115 of file saveload.cpp.
|
inline |
|
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 2127 of file saveload.cpp.
References LoadFilter::chain, fread_buf, LoadFilter::Read(), SlError(), and z.
1.8.1.2