18 #include <vlutil/vlMachineTypes.h>
19 #include <vlutil/vlSmartPointers.h>
37 size_t maxUncompressedMsgSize, MAKRti::DtU8 compressionLevel = 1);
45 virtual bool compressMsg(
char* msg,
size_t msgSize,
char** compressedMsg,
46 size_t& compressedSize);
49 virtual bool isCompressed(
const char* bufferPtr,
size_t size)
const;
54 virtual bool uncompressMsg(
char* msg,
size_t msgSize,
char** uncompressedMsg,
55 size_t& uncompressedSize);
59 virtual void setCompressionLevel(MAKRti::DtU8 level);
z_streamp myUncompressionStream
Pointer to ZLIB stream structure used for decompression.
Definition: msgCompressor.h:89
z_streamp myCompressionStream
Pointer to ZLIB stream structure used for compression.
Definition: msgCompressor.h:86
std::vector< char > myCompressedBuffer
Buffer for storing outgoing messages after they have been compressed.
Definition: msgCompressor.h:68
size_t myMaxUncompressedMsgSize
The maximum size of uncompressed messages.
Definition: msgCompressor.h:83
The DtMsgCompressor class provides a means for compressing and uncompressing messages.
Definition: msgCompressor.h:31
std::shared_ptr< DtMsgHeaderReader > myHeaderReader
Reads data from message header.
Definition: msgCompressor.h:77
struct z_stream_s * z_streamp
Definition: msgCompressor.h:26
MAKRti::DtU8 myCompressionLevel
The compression level.
Definition: msgCompressor.h:80
size_t myUncompressedDataSize
Size of the data in the uncompressed buffer.
Definition: msgCompressor.h:74
virtual MAKRti::DtU8 compressionLevel() const
Get/Set the compression level.
Definition: msgCompressor.h:58
virtual size_t maxUncompressedMsgSize() const
Get the maximum size of uncompressed messages.
Definition: msgCompressor.h:63
std::vector< char > myUncompressedBuffer
Buffer for storing incoming messages after they have been uncompressed.
Definition: msgCompressor.h:71
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160