Generic class for serialising data to / from binary stream-based files.
More...
#include <OgreSerializer.h>
|
| Serializer () |
|
virtual | ~Serializer () |
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
|
virtual void | determineEndianness (DataStreamPtr &stream) |
| Determine the endianness of the incoming stream compared to native. More...
|
|
virtual void | determineEndianness (Endian requestedEndian) |
| Determine the endianness to write with based on option. More...
|
|
virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1) |
|
virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1) |
|
void | readBools (DataStreamPtr &stream, bool *pDest, size_t count) |
|
virtual unsigned short | readChunk (DataStreamPtr &stream) |
|
virtual void | readFileHeader (DataStreamPtr &stream) |
|
void | readFloats (DataStreamPtr &stream, float *pDest, size_t count) |
|
void | readFloats (DataStreamPtr &stream, double *pDest, size_t count) |
|
void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count) |
|
void | readObject (DataStreamPtr &stream, Vector3 &pDest) |
|
void | readObject (DataStreamPtr &stream, Quaternion &pDest) |
|
void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count) |
|
String | readString (DataStreamPtr &stream) |
|
String | readString (DataStreamPtr &stream, size_t numChars) |
|
void | writeBools (const bool *const pLong, size_t count) |
|
virtual void | writeChunkHeader (uint16 id, size_t size) |
|
void | writeData (const void *const buf, size_t size, size_t count) |
|
virtual void | writeFileHeader (void) |
| Default to native endian, derive from header. More...
|
|
void | writeFloats (const float *const pfloat, size_t count) |
|
void | writeFloats (const double *const pfloat, size_t count) |
|
void | writeInts (const uint32 *const pInt, size_t count) |
|
void | writeObject (const Vector3 &vec) |
|
void | writeObject (const Quaternion &q) |
|
void | writeShorts (const uint16 *const pShort, size_t count) |
|
void | writeString (const String &string) |
|
Generic class for serialising data to / from binary stream-based files.
Definition at line 50 of file OgreSerializer.h.
◆ Endian
The endianness of written files.
Enumerator |
---|
ENDIAN_NATIVE | Use the platform native endian.
|
ENDIAN_BIG | Use big endian (0x1000 is serialised as 0x10 0x00)
|
ENDIAN_LITTLE | Use little endian (0x1000 is serialised as 0x00 0x10)
|
Definition at line 57 of file OgreSerializer.h.
◆ Serializer()
Ogre::Serializer::Serializer |
( |
| ) |
|
◆ ~Serializer()
virtual Ogre::Serializer::~Serializer |
( |
| ) |
|
|
virtual |
◆ determineEndianness() [1/2]
virtual void Ogre::Serializer::determineEndianness |
( |
DataStreamPtr & |
stream | ) |
|
|
protectedvirtual |
Determine the endianness of the incoming stream compared to native.
◆ determineEndianness() [2/2]
virtual void Ogre::Serializer::determineEndianness |
( |
Endian |
requestedEndian | ) |
|
|
protectedvirtual |
Determine the endianness to write with based on option.
◆ flipFromLittleEndian()
virtual void Ogre::Serializer::flipFromLittleEndian |
( |
void * |
pData, |
|
|
size_t |
size, |
|
|
size_t |
count = 1 |
|
) |
| |
|
protectedvirtual |
◆ flipToLittleEndian()
virtual void Ogre::Serializer::flipToLittleEndian |
( |
void * |
pData, |
|
|
size_t |
size, |
|
|
size_t |
count = 1 |
|
) |
| |
|
protectedvirtual |
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inherited |
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inherited |
◆ operator new[]() [2/2]
◆ readBools()
void Ogre::Serializer::readBools |
( |
DataStreamPtr & |
stream, |
|
|
bool * |
pDest, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ readChunk()
virtual unsigned short Ogre::Serializer::readChunk |
( |
DataStreamPtr & |
stream | ) |
|
|
protectedvirtual |
◆ readFileHeader()
virtual void Ogre::Serializer::readFileHeader |
( |
DataStreamPtr & |
stream | ) |
|
|
protectedvirtual |
◆ readFloats() [1/2]
void Ogre::Serializer::readFloats |
( |
DataStreamPtr & |
stream, |
|
|
float * |
pDest, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ readFloats() [2/2]
void Ogre::Serializer::readFloats |
( |
DataStreamPtr & |
stream, |
|
|
double * |
pDest, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ readInts()
◆ readObject() [1/2]
◆ readObject() [2/2]
◆ readShorts()
◆ readString() [1/2]
◆ readString() [2/2]
◆ writeBools()
void Ogre::Serializer::writeBools |
( |
const bool *const |
pLong, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeChunkHeader()
virtual void Ogre::Serializer::writeChunkHeader |
( |
uint16 |
id, |
|
|
size_t |
size |
|
) |
| |
|
protectedvirtual |
◆ writeData()
void Ogre::Serializer::writeData |
( |
const void *const |
buf, |
|
|
size_t |
size, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeFileHeader()
virtual void Ogre::Serializer::writeFileHeader |
( |
void |
| ) |
|
|
protectedvirtual |
Default to native endian, derive from header.
◆ writeFloats() [1/2]
void Ogre::Serializer::writeFloats |
( |
const float *const |
pfloat, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeFloats() [2/2]
void Ogre::Serializer::writeFloats |
( |
const double *const |
pfloat, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeInts()
void Ogre::Serializer::writeInts |
( |
const uint32 *const |
pInt, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeObject() [1/2]
void Ogre::Serializer::writeObject |
( |
const Vector3 & |
vec | ) |
|
|
protected |
◆ writeObject() [2/2]
void Ogre::Serializer::writeObject |
( |
const Quaternion & |
q | ) |
|
|
protected |
◆ writeShorts()
void Ogre::Serializer::writeShorts |
( |
const uint16 *const |
pShort, |
|
|
size_t |
count |
|
) |
| |
|
protected |
◆ writeString()
void Ogre::Serializer::writeString |
( |
const String & |
string | ) |
|
|
protected |
◆ mCurrentstreamLen
uint32 Ogre::Serializer::mCurrentstreamLen |
|
protected |
◆ mFlipEndian
bool Ogre::Serializer::mFlipEndian |
|
protected |
◆ mStream
◆ mVersion
String Ogre::Serializer::mVersion |
|
protected |
The documentation for this class was generated from the following file: