diff options
author | Pixel <Pixel> | 2001-12-03 11:39:34 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-03 11:39:34 +0000 |
commit | 8fac2c6298c5fd2b06e7e219687766dd8cf965b3 (patch) | |
tree | 6dc9ec0dc0d6a24e528ab67dc7081d069080f1ee /include | |
parent | 84944dbe0dfcadfb5c069e210c0545b88aae57dc (diff) |
Zlib....
Diffstat (limited to 'include')
-rw-r--r-- | include/Buffer.h | 7 | ||||
-rw-r--r-- | include/CopyJob.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/Buffer.h b/include/Buffer.h index c2e78ec..5177916 100644 --- a/include/Buffer.h +++ b/include/Buffer.h @@ -2,6 +2,7 @@ #define __BUFFER_H__ #ifdef __cplusplus +#include <zlib.h> #include <Exceptions.h> #include <Handle.h> @@ -18,12 +19,14 @@ class Buffer : public Handle { virtual bool CanRead(); virtual bool CanWrite(); virtual String GetName(); - Buffer operator=(const Buffer &); + virtual Buffer operator=(const Buffer &); virtual bool CanWatch(); + void deflate(void) throw (GeneralException); private: - char * buffer; + char * buffer, * zbuffer; int realsiz, bufsiz, ptr; + z_stream zs; }; #else diff --git a/include/CopyJob.h b/include/CopyJob.h index bd859bb..14fbf0b 100644 --- a/include/CopyJob.h +++ b/include/CopyJob.h @@ -9,7 +9,7 @@ class CopyJob : public Task { public: - CopyJob(Handle *, Handle *, ssize_t = -1, bool = false); + CopyJob(Handle *, Handle *, ssize_t = -1, bool = false, int z = 0); virtual ~CopyJob(); virtual int Do() throw (GeneralException); virtual String GetName(); |