OpenTTD Source  20241108-master-g80f628063a
NoCompSaveFilter Struct Reference

Filter without any compression. More...

Inheritance diagram for NoCompSaveFilter:
SaveFilter

Public Member Functions

 NoCompSaveFilter (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< SaveFilterchain
 Chained to the (savegame) filters.
 

Detailed Description

Filter without any compression.

Definition at line 2392 of file saveload.cpp.

Constructor & Destructor Documentation

◆ NoCompSaveFilter()

NoCompSaveFilter::NoCompSaveFilter ( std::shared_ptr< SaveFilter chain,
uint8_t   
)
inline

Initialise this filter.

Parameters
chainThe next filter in this chain.

Definition at line 2397 of file saveload.cpp.

Member Function Documentation

◆ Write()

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

Write a given number of bytes into the savegame.

Parameters
bufThe bytes to write.
lenThe number of bytes to write.

Implements SaveFilter.

Definition at line 2401 of file saveload.cpp.

References SaveFilter::chain.


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