PxCrypt v0.1
Encrypt data within an image
Loading...
Searching...
No Matches
byte_compositer.h
1#ifndef BYTE_COMPOSITER_H
2#define BYTE_COMPOSITER_H
3
4// Qt Includes
5#include <QByteArrayView>
6
7namespace PxCrypt
8{
11class ByteCompositer
12{
13//-Instance Variables------------------------------------------------------------------------------------------------------
14private:
15 QByteArray* mOutput;
16 quint8 mBuffer;
17
18 quint8 mBitIdx;
19 quint8 mChunkSize;
20
21//-Constructor---------------------------------------------------------------------------------------------------------
22public:
23 ByteCompositer(QByteArray* bufferOut, quint8 chunkSize);
24
25//-Instance Functions----------------------------------------------------------------------------------------------
26private:
27 /* Flush doesn't need to be public, which would complicate the design of this class since encoded data is only ever
28 * composed of complete bytes. If PxSkimmer runs out of data while this is in the middle of a byte then there
29 * is a different problem.
30 */
31 void flush();
32 void advance();
33
34public:
35 void composite(quint8 chunk);
36};
37
39}
40
41#endif // BYTE_COMPOSITER_H
The PxCrypt namespace is the main namespace through which all functionality of the PxCrypt library is...
Definition decode_error.cpp:5
QTextStream & flush(QTextStream &stream)