|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
Public Member Functions | |
| memory_reader (const uint8_t *pData, const size_t iLength) | |
| bool | are_bytes_available (size_t iSize) const |
| Can iSize bytes be read from the file? | |
| bool | is_at_end_of_file () const |
| Is EOF reached? | |
| uint8_t | read_uint8 () |
| Get an 8 bit value from the file. | |
| uint16_t | read_uint16 () |
| Get a 16 bit value from the file. | |
| int | read_int16 () |
| Get a signed 16 bit value from the file. | |
| uint32_t | read_uint32 () |
| Get a 32 bit value from the file. | |
| bool | read_string (std::string *pStr) |
| Load string from the memory_reader. | |
Public Attributes | |
| const uint8_t * | data |
| Pointer to the remaining data. | |
| size_t | remaining_bytes |
| Remaining number of bytes. | |
Data retrieval class, simulating sequential access to the data, keeping track of available length.
|
inline |
Can iSize bytes be read from the file?
| iSize | Number of bytes that are queried. |
|
inline |
Is EOF reached?
|
inline |
Get a signed 16 bit value from the file.
|
inline |
Load string from the memory_reader.
| [out] | pStr | String to load. |
|
inline |
Get a 16 bit value from the file.
|
inline |
Get a 32 bit value from the file.
|
inline |
Get an 8 bit value from the file.
| const uint8_t* memory_reader::data |
Pointer to the remaining data.
| size_t memory_reader::remaining_bytes |
Remaining number of bytes.