compression quality, ranging from 1 (fastest) to 9 (best compression). */
ZlibCompressed(Base &, unsigned level = 9);
+ /** Creates a zlib de/compression object. Mode must be either read or
+ write, and compatible with the underlying object. */
+ ZlibCompressed(Base &, Mode, unsigned level = 9);
+
+private:
+ void init(unsigned);
+
+public:
virtual ~ZlibCompressed();
+ virtual void set_block(bool);
+ virtual void set_inherit(bool);
+
void flush();
protected:
public:
virtual unsigned do_read(char *, unsigned);
+
+ virtual const Handle &get_handle(Mode);
};
} // namespace IO