OpenTTD Source 20241224-master-gf74b0cf984
|
A buffer for reading (and buffering) savegame data. More...
Public Member Functions | |
ReadBuffer (std::shared_ptr< LoadFilter > reader) | |
Initialise our variables. | |
uint8_t | ReadByte () |
size_t | GetSize () const |
Get the size of the memory dump made so far. | |
Data Fields | |
uint8_t | buf [MEMORY_CHUNK_SIZE] |
Buffer we're going to read from. | |
uint8_t * | bufp |
Location we're at reading the buffer. | |
uint8_t * | bufe |
End of the buffer we can read from. | |
std::shared_ptr< 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 87 of file saveload.cpp.
|
inline |
Initialise our variables.
reader | The filter to actually read data. |
Definition at line 98 of file saveload.cpp.
|
inline |
Get the size of the memory dump made so far.
Definition at line 120 of file saveload.cpp.
References bufp.
|
inline |
Definition at line 102 of file saveload.cpp.
uint8_t ReadBuffer::buf[MEMORY_CHUNK_SIZE] |
Buffer we're going to read from.
Definition at line 88 of file saveload.cpp.
uint8_t* ReadBuffer::bufe |
End of the buffer we can read from.
Definition at line 90 of file saveload.cpp.
uint8_t* ReadBuffer::bufp |
Location we're at reading the buffer.
Definition at line 89 of file saveload.cpp.
Referenced by GetSize().
size_t ReadBuffer::read |
The amount of read bytes so far from the filter.
Definition at line 92 of file saveload.cpp.
std::shared_ptr<LoadFilter> ReadBuffer::reader |
The filter used to actually read.
Definition at line 91 of file saveload.cpp.