27 class EXPCL_PANDA_EXPRESS ZStreamBuf :
public std::streambuf {
30 virtual ~ZStreamBuf();
32 void open_read(std::istream *source,
bool owns_source);
35 void open_write(std::ostream *dest,
bool owns_dest,
int compression_level);
38 virtual std::streampos seekoff(std::streamoff off, ios_seekdir dir, ios_openmode which);
39 virtual std::streampos seekpos(std::streampos pos, ios_openmode which);
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);
52 std::istream *_source;
71 decompress_buffer_size = 128
73 char decompress_buffer[decompress_buffer_size];
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.