25 #ifndef __SYNFIG_ZSTREAMBUF_H
26 #define __SYNFIG_ZSTREAMBUF_H
60 bool inflate_initialized;
61 z_stream inflate_stream_;
62 std::vector<char> read_buffer_;
64 bool deflate_initialized;
65 z_stream deflate_stream_;
66 std::vector<char> write_buffer_;
69 bool deflate_buf(
bool flush);
86 std::istream istream_;
90 {
return (
size_t)istream_.read((
char*)buffer, size).gcount(); }
96 buf_(stream_->rdbuf()),
107 std::ostream ostream_;
112 for(
size_t i = 0; i < size; i++)
113 if (!ostream_.put(((
const char*)buffer)[i]).good())
122 buf_(stream_->rdbuf()),