OpenTTD Source: NoCompLoadFilter Struct Reference

OpenTTD Source 15.0-beta1

Public Member Functions
NoCompLoadFilter Struct Reference

Filter without any compression. More...

Inheritance diagram for NoCompLoadFilter:

## Public Member Functions
| NoCompLoadFilter (std::shared_ptr< LoadFilter > chain)
| Initialise this filter.
size_t | Read (uint8_t *buf, size_t size) override
| Read a given number of bytes from the savegame.
Public Member Functions inherited from LoadFilter
| LoadFilter (std::shared_ptr< LoadFilter > chain)
| Initialise this filter.
virtual | ~LoadFilter ()=default
| Make sure the writers are properly closed.
virtual void | Reset ()
| Reset this filter to read from the beginning of the file.

## Additional Inherited Members
Data Fields inherited from LoadFilter
std::shared_ptr< LoadFilter > | chain
| Chained to the (savegame) filters.

## Detailed Description

Filter without any compression.

Definition at line 2412 of file saveload.cpp.

## Constructor & Destructor Documentation

## ◆ NoCompLoadFilter()

NoCompLoadFilter::NoCompLoadFilter | ( | std::shared_ptr< LoadFilter > | chain | ) |
| inline

Initialise this filter.

Parameters

  chain | The next filter in this chain.

Definition at line 2417 of file saveload.cpp.

## Member Function Documentation

## ◆ Read()

size_t NoCompLoadFilter::Read | ( | uint8_t * | buf,
|  | size_t | len
| ) |  |
| inlineoverridevirtual

Read a given number of bytes from the savegame.

Parameters

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

Returns
  The number of actually read bytes.

Implements LoadFilter.

Definition at line 2421 of file saveload.cpp.

References LoadFilter::chain.

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

- src/saveload/saveload.cpp