18 #include "pandabase.h" 30 class EXPCL_PANDAEXPRESS ZStreamBuf :
public streambuf {
33 virtual ~ZStreamBuf();
35 void open_read(istream *source,
bool owns_source);
38 void open_write(ostream *dest,
bool owns_dest,
int compression_level);
42 virtual int overflow(
int c);
44 virtual int underflow();
47 size_t read_chars(
char *start,
size_t length);
48 void write_chars(
const char *start,
size_t length,
int flush);
49 void show_zlib_error(
const char *
function,
int error_code, z_stream &z);
73 decompress_buffer_size = 128
75 char decompress_buffer[decompress_buffer_size];