OpenTTD Source
20241121-master-g67a0fccfad
|
Filter using LZO compression. More...
Public Member Functions | |
LZOSaveFilter (std::shared_ptr< SaveFilter > chain, uint8_t) | |
Initialise this filter. More... | |
void | Write (uint8_t *buf, size_t size) override |
Write a given number of bytes into the savegame. More... | |
Public Member Functions inherited from SaveFilter | |
SaveFilter (std::shared_ptr< SaveFilter > chain) | |
Initialise this filter. More... | |
virtual | ~SaveFilter () |
Make sure the writers are properly closed. | |
virtual void | Finish () |
Prepare everything to finish writing the savegame. | |
Additional Inherited Members | |
Data Fields inherited from SaveFilter | |
std::shared_ptr< SaveFilter > | chain |
Chained to the (savegame) filters. | |
Filter using LZO compression.
Definition at line 2341 of file saveload.cpp.
|
inline |
Initialise this filter.
chain | The next filter in this chain. |
Definition at line 2346 of file saveload.cpp.
References SlError().
|
inlineoverridevirtual |
Write a given number of bytes into the savegame.
buf | The bytes to write. |
len | The number of bytes to write. |
Implements SaveFilter.
Definition at line 2351 of file saveload.cpp.
References LZO_BUFFER_SIZE.