Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Public Member Functions | |
Stream (const ByteArray &data) | |
size_t | read (ByteArray &buffer, const size_t &len) |
size_t | write (ByteArray &buffer, const size_t &len) |
bool | eof () |
bool | seek (const size_t &pos) |
size_t | tell () |
size_t | size () |
void | align (size_t alignment) |
std::string | readStringToNull (const size_t &maxLength=32767) |
std::string | readString (const size_t &length) |
template<typename T > | |
T | readValue (bool little_endian=true) |
const ByteArray | getData () const |
template<> | |
bool | readValue (bool little_endian) |
template<> | |
uint8_t | readValue (bool little_endian) |
template<> | |
int8_t | readValue (bool little_endian) |
template<> | |
uint16_t | readValue (bool little_endian) |
template<> | |
int16_t | readValue (bool little_endian) |
template<> | |
uint32_t | readValue (bool little_endian) |
template<> | |
int32_t | readValue (bool little_endian) |
template<> | |
uint64_t | readValue (bool little_endian) |
template<> | |
int64_t | readValue (bool little_endian) |
template<> | |
float | readValue (bool little_endian) |
template<> | |
double | readValue (bool little_endian) |
void oe::io::Stream::align | ( | size_t | alignment | ) |
Move stream position to be aligned