18class CMemoryWriteArchive;
32 const void* bufferPtr,
34 bool serializeHeader =
true);
37 bool serializeHeader =
true);
Base class for archive implementations reading data based on its binary representation.
Implementation of archive using memory buffer to read the persistent objects.
virtual int GetMaxStringLength() const
Get maximal allowed string size.
static bool CompareByArchive(const istd::IChangeable &object1, const istd::IChangeable &object2)
Compare two objects using coparision of serialized streams.
CMemoryReadArchive(const void *bufferPtr, int bufferSize, bool serializeHeader=true)
static bool CloneByArchive(const istd::IChangeable &object, istd::IChangeable &result)
Try copy of two objects using of serialization.
CMemoryReadArchive(const CMemoryWriteArchive &writeArchive, bool serializeHeader=true)
static bool CloneByArchive(const ISerializable &object, ISerializable &result)
Clone serializable objects using iser::CMemoryWriteArchive and iser::CMemoryReadArchive archives.
virtual bool ProcessData(void *data, int size)
Process binary data block.
virtual bool IsValid() const
Returns true if the archive is in valid state and internal position cursor has not reached end of arc...
CBinaryReadArchiveBase BaseClass
const quint8 * m_bufferPtr
virtual void ResetPosition()
Seeks internal cursor to the begin of data.
Implementation of archive using memory buffer to store the persistent objects.
Common class for all classes which objects can be archived or restored from archive.
Common interface for data model objects, which can be changed.
Contains general persistence mechanism with basic archives implementations.