Panda3D
|
An input stream object that uses zlib to compress (deflate) data to another destination stream on-the-fly. More...
Public Types | |
enum | openmode |
enum | seekdir { beg = 0, cur = 1, end = 2 } |
Public Member Functions | |
OCompressStream () | |
OCompressStream (ostream dest, bool owns_dest, int compression_level) | |
OCompressStream (ostream dest, bool owns_dest) | |
bool | bad () |
clear () | |
OCompressStream | close () |
Resets the ZStream to empty, but does not actually close the dest ostream unless owns_dest was true. | |
bool | eof () |
bool | fail () |
flush () | |
bool | good () |
OCompressStream | open (ostream dest, bool owns_dest, int compression_level) |
OCompressStream | open (ostream dest, bool owns_dest) |
put (char c) | |
seekp (unsigned long int pos) | |
seekp (long int off, seekdir dir) | |
unsigned long int | tellp () |
An input stream object that uses zlib to compress (deflate) data to another destination stream on-the-fly.
Attach an OCompressStream to an existing ostream that will accept compressed data, and write your uncompressed source data to the OCompressStream.
Seeking is not supported.
enum openmode [inherited] |
enum seekdir [inherited] |
OCompressStream | ( | ) |
OCompressStream | ( | ostream | dest, |
bool | owns_dest, | ||
int | compression_level | ||
) |
OCompressStream | ( | ostream | dest, |
bool | owns_dest | ||
) |
bool bad | ( | ) | [inherited] |
clear | ( | ) | [inherited] |
OCompressStream close | ( | ) |
Resets the ZStream to empty, but does not actually close the dest ostream unless owns_dest was true.
bool eof | ( | ) | [inherited] |
bool fail | ( | ) | [inherited] |
flush | ( | ) | [inherited] |
Reimplemented in iostream, OSocketStream, SocketStream, and MultiplexStream.
bool good | ( | ) | [inherited] |
OCompressStream open | ( | ostream | dest, |
bool | owns_dest | ||
) |
OCompressStream open | ( | ostream | dest, |
bool | owns_dest, | ||
int | compression_level | ||
) |
put | ( | char | c | ) | [inherited] |
seekp | ( | unsigned long int | pos | ) | [inherited] |
unsigned long int tellp | ( | ) | [inherited] |