33 #include <Pt/StreamBuffer.h>
37 typedef struct z_stream_s z_stream;
86 std::streamsize
import(std::streamsize maxImport = 0);
88 std::streamsize
import(
const char* data, std::streamsize size);
92 virtual std::streamsize showmanyc();
101 virtual int_type underflow();
104 virtual int_type overflow(int_type ch);
107 void inflateBuffer();
113 static const int _pbmax = 4;
114 static const int _bufmax = 1024;
117 static const int _zbufmax = 1024;
118 char _zbuf[_zbufmax];
124 #endif // PT_ZBUFFER_H
Core module.
Definition: pt-gfx-images.dox:14
ZBuffer(std::ios &ios)
Construct with target stream.
Stream buffer for zlib compression.
Definition: ZBuffer.h:44
void reset()
Detach from target stream, discard the buffer and reset the state.
virtual std::streamsize showfull()
Returns the number of characters buffered for output.
void detach()
Detach from target stream.
virtual ~ZBuffer()
Destructor.
void discard()
Discards the buffer content and resets the state.
void attach(std::ios &target)
Attach to target stream.
void finish()
Finish and flush remaining data to the target stream.
Buffer for input and output streams.
Definition: StreamBuffer.h:52
ZBuffer()
Default Constructor.
void reset(std::ios &target)
Attach to target stream, discard the buffer and reset the state.