diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-07-15 07:07:53 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-07-15 07:07:53 (GMT) |
commit | 7a591138e89ad71ee1dd9825d7705c94f9bb50d2 (patch) | |
tree | 25b9832b234d498ff359ee6d60758004a3232278 /Swiften/Compress/ZLibCompressor.h | |
parent | fbe2f40509da8c6c25d07de18ded3c0e3194ef6b (diff) | |
download | swift-contrib-7a591138e89ad71ee1dd9825d7705c94f9bb50d2.zip swift-contrib-7a591138e89ad71ee1dd9825d7705c94f9bb50d2.tar.bz2 |
Hide ZLib implementation.
Diffstat (limited to 'Swiften/Compress/ZLibCompressor.h')
-rw-r--r-- | Swiften/Compress/ZLibCompressor.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Swiften/Compress/ZLibCompressor.h b/Swiften/Compress/ZLibCompressor.h index 1add725..f4a8d2f 100644 --- a/Swiften/Compress/ZLibCompressor.h +++ b/Swiften/Compress/ZLibCompressor.h @@ -7,20 +7,14 @@ #pragma once #include <Swiften/Compress/ZLibCodecompressor.h> -#include <Swiften/Base/ByteArray.h> namespace Swift { class ZLibCompressor : public ZLibCodecompressor { public: ZLibCompressor(); + ~ZLibCompressor(); - ~ZLibCompressor() { - deflateEnd(&stream_); - } - - virtual int processZStream() { - return deflate(&stream_, Z_SYNC_FLUSH); - } + virtual int processZStream(); private: static const int COMPRESSION_LEVEL = 9; |