summaryrefslogtreecommitdiff
path: root/include/Buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Buffer.h')
-rw-r--r--include/Buffer.h7
1 files changed, 5 insertions, 2 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