OpenTTD Source
1.11.0-beta2
|
A buffer for reading (and buffering) savegame data. More...
Public Member Functions | |
ReadBuffer (LoadFilter *reader) | |
Initialise our variables. More... | |
byte | ReadByte () |
size_t | GetSize () const |
Get the size of the memory dump made so far. More... | |
Data Fields | |
byte | buf [MEMORY_CHUNK_SIZE] |
Buffer we're going to read from. | |
byte * | bufp |
Location we're at reading the buffer. | |
byte * | bufe |
End of the buffer we can read from. | |
LoadFilter * | reader |
The filter used to actually read. | |
size_t | read |
The amount of read bytes so far from the filter. | |
A buffer for reading (and buffering) savegame data.
Definition at line 89 of file saveload.cpp.
|
inline |
Initialise our variables.
reader | The filter to actually read data. |
Definition at line 100 of file saveload.cpp.
|
inline |
Get the size of the memory dump made so far.
Definition at line 122 of file saveload.cpp.
References bufp.