Yes, simply reading from a file. More...
Public Member Functions | |
| FileReader (FILE *file) | |
| Create the file reader, so it reads from a specific file. | |
| ~FileReader () | |
| Make sure everything is cleaned up. | |
| size_t | Read (byte *buf, size_t size) |
| Read a given number of bytes from the savegame. | |
| void | Reset () |
| Reset this filter to read from the beginning of the file. | |
Data Fields | |
| FILE * | file |
| The file to read from. | |
| long | begin |
| The begin of the file. | |
Yes, simply reading from a file.
Definition at line 1751 of file saveload.cpp.
| FileReader::FileReader | ( | FILE * | file | ) | [inline] |
Create the file reader, so it reads from a specific file.
| file | The file to read from. |
Definition at line 1759 of file saveload.cpp.
| FileReader::~FileReader | ( | ) | [inline] |
Make sure everything is cleaned up.
Definition at line 1764 of file saveload.cpp.
References file, and SaveLoadParams::sf.
| size_t FileReader::Read | ( | byte * | buf, | |
| size_t | len | |||
| ) | [inline, virtual] |
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 1773 of file saveload.cpp.
References file.
1.7.1