|
| ResourceSerializer (Common::SeekableReadStream *in, Common::WriteStream *out, uint32 version) |
|
void | syncAsFloat (float &value) |
|
void | syncAsVector3d (Math::Vector3d &value) |
|
void | syncAsResourceReference (ResourceReference &reference) |
|
void | syncAsString32 (Common::String &string) |
|
template<typename T > |
void | syncAsResourceReference (T **object, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncArraySize (Common::Array< T > &array, Version minVersion=0, Version maxVersion=kLastVersion) |
|
| Serializer (SeekableReadStream *in, WriteStream *out) |
|
bool | isSaving () |
|
bool | isLoading () |
|
template<typename T > |
void | syncAsByte (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsSByte (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsUint16LE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsUint16BE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsSint16LE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsSint16BE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsUint32LE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsUint32BE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsSint32LE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsSint32BE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsFloatLE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsFloatBE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsDoubleLE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncAsDoubleBE (T &val, Version minVersion=0, Version maxVersion=kLastVersion) |
|
bool | err () const |
|
void | clearErr () |
|
bool | syncVersion (Version currentVersion) |
|
Version | getVersion () const |
|
void | setVersion (Version version) |
|
uint | bytesSynced () const |
|
void | skip (uint32 size, Version minVersion=0, Version maxVersion=kLastVersion) |
|
void | syncBytes (byte *buf, uint32 size, Version minVersion=0, Version maxVersion=kLastVersion) |
|
bool | matchBytes (const char *magic, byte size, Version minVersion=0, Version maxVersion=kLastVersion) |
|
void | syncString (String &str, Version minVersion=0, Version maxVersion=kLastVersion) |
|
void | syncString32 (U32String &str, Version minVersion=0, Version maxVersion=kLastVersion) |
|
template<typename T > |
void | syncArray (T *arr, size_t entries, void(*serializer)(Serializer &, T &), Version minVersion=0, Version maxVersion=kLastVersion) |
|
|
typedef uint32 | Version |
|
template<typename T > |
static void | Uint32LE (Serializer &s, T &value) |
|
template<typename T > |
static void | Uint32BE (Serializer &s, T &value) |
|
template<typename T > |
static void | Sint32LE (Serializer &s, T &value) |
|
template<typename T > |
static void | Sint32BE (Serializer &s, T &value) |
|
template<typename T > |
static void | FloatLE (Serializer &s, T &value) |
|
template<typename T > |
static void | FloatBE (Serializer &s, T &value) |
|
template<typename T > |
static void | DoubleLE (Serializer &s, T &value) |
|
template<typename T > |
static void | DoubleBE (Serializer &s, T &value) |
|
template<typename T > |
static void | Uint16LE (Serializer &s, T &value) |
|
template<typename T > |
static void | Uint16BE (Serializer &s, T &value) |
|
template<typename T > |
static void | Sint16LE (Serializer &s, T &value) |
|
template<typename T > |
static void | Sint16BE (Serializer &s, T &value) |
|
template<typename T > |
static void | Byte (Serializer &s, T &value) |
|
template<typename T > |
static void | SByte (Serializer &s, T &value) |
|
static const Version | kLastVersion = 0xFFFFFFFF |
|
SeekableReadStream * | _loadStream |
|
WriteStream * | _saveStream |
|
uint | _bytesSynced |
|
Version | _version |
|