|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
Public Member Functions | |
| memory_buffer () | |
| memory_buffer (const uint8_t *pData, size_t iLength) | |
| ~memory_buffer () | |
| uint8_t * | take_data (size_t *pLength) |
| size_t | tell () const |
| bool | seek (size_t position) |
| bool | skip (std::ptrdiff_t distance) |
| bool | scan_to (const void *pData, size_t iLength) |
| const char * | get_pointer () const |
| template<class T > | |
| bool | read (T &value) |
| template<class T > | |
| bool | read (T *values, size_t count) |
| uint32_t | read_big_endian_uint24 () |
| uint32_t | read_variable_length_uint () |
| template<class T > | |
| bool | write (const T &value) |
| template<class T > | |
| bool | write (const T *values, size_t count) |
| bool | write_big_endian_uint16 (uint16_t iValue) |
| bool | write_big_endian_uint32 (uint32_t iValue) |
| bool | write_variable_length_uint (unsigned int iValue) |
| bool | is_end_of_buffer () const |
Utility class for reading or writing to memory as if it were a file.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |