OpenTTD Source: LZOSaveFilter Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions
LZOSaveFilter Struct Reference

Filter using LZO compression. More...

Inheritance diagram for LZOSaveFilter:

## Public Member Functions
| LZOSaveFilter (std::shared_ptr< SaveFilter > chain, uint8_t)
| Initialise this filter.
void | Write (uint8_t *buf, size_t size) override
| Write a given number of bytes into the savegame.
Public Member Functions inherited from SaveFilter
| SaveFilter (std::shared_ptr< SaveFilter > chain)
| Initialise this filter.
virtual | ~SaveFilter ()=default
| 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.

## Detailed Description

Filter using LZO compression.

Definition at line 2484 of file saveload.cpp.

## Constructor & Destructor Documentation

## ◆ LZOSaveFilter()

LZOSaveFilter::LZOSaveFilter | ( | std::shared_ptr< SaveFilter > | chain,
|  | uint8_t |
| ) |  |
| inline

Initialise this filter.

Parameters

  chain | The next filter in this chain.

Definition at line 2489 of file saveload.cpp.

References SlError().

## Member Function Documentation

## ◆ Write()

void LZOSaveFilter::Write | ( | uint8_t * | buf,
|  | size_t | len
| ) |  |
| inlineoverridevirtual

Write a given number of bytes into the savegame.

Parameters

  buf | The bytes to write.
  len | The number of bytes to write.

Implements SaveFilter.

Definition at line 2494 of file saveload.cpp.

References SaveFilter::chain, and LZO_BUFFER_SIZE.

The documentation for this struct was generated from the following file:

- src/saveload/saveload.cpp