ACF $AcfVersion:0$
CBitMemoryWriteArchive.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
8
9namespace iser
10{
11
12
19{
20public:
22
23 CBitMemoryWriteArchive(const IVersionInfo* versionInfoPtr = NULL, bool serializeHeader = true, int initialBufferSize = -1);
24
28 void WriteValue(quint32 inputValue, int bits);
29
30 // reimplemented (iser::IArchive)
31 virtual bool ProcessData(void* data, int size) override;
32 virtual bool ProcessBits(void* data, int bitsCount, int bytesCount) override;
33
34protected:
36};
37
38
39
40} // namespace iser
41
42
43
This is an archive implementation which provides bitwise write of data.
virtual bool ProcessBits(void *data, int bitsCount, int bytesCount) override
Process binary data block.
void WriteValue(quint32 inputValue, int bits)
Pushes a value of the word bounding by N bits into the stream.
virtual bool ProcessData(void *data, int size) override
Process binary data block.
CBitMemoryWriteArchive(const IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, int initialBufferSize=-1)
Implementation of archive using memory buffer to store the persistent objects.
Provides access to version information.
#define NULL
Definition istd.h:74
Contains general persistence mechanism with basic archives implementations.