6#include <QtCore/QVector>
32 const void* bufferPtr,
34 bool serializeHeader =
true);
38 bool serializeHeader =
true);
47 virtual bool ProcessBits(
void* dataPtr,
int bitsCount,
int bytesCount)
override;
This class provides bitwise access to the byte data.
virtual bool ProcessBits(void *dataPtr, int bitsCount, int bytesCount) override
Process binary data block.
virtual bool IsValid() const override
Returns true if the archive is in valid state and internal position cursor has not reached end of arc...
CBitMemoryReadArchive(const CMemoryWriteArchive &writeArchive, bool serializeHeader=true)
CBitMemoryReadArchive(const void *bufferPtr, int bufferSize, bool serializeHeader=true)
virtual quint32 ReadValue(int bits)
Gets the value of the next bits in the stream.
CBitMemoryReadArchive(const QVector< quint8 > &data, bool serializeHeader=true)
Constructs a bit stream from a vector of bytes.
CMemoryReadArchive BaseClass
virtual bool ProcessData(void *data, int size) override
Process binary data block.
virtual void ResetPosition() override
Seeks internal cursor to the begin of data.
Implementation of archive using memory buffer to read the persistent objects.
Implementation of archive using memory buffer to store the persistent objects.
Contains general persistence mechanism with basic archives implementations.