Panda3D
Public Types | Public Member Functions

OCompressStream Class Reference

An input stream object that uses zlib to compress (deflate) data to another destination stream on-the-fly. More...

Inheritance diagram for OCompressStream:
ostream ios ios_base

List of all members.

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 ()

Detailed Description

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.


Member Enumeration Documentation

enum openmode [inherited]
enum seekdir [inherited]
Enumerator:
beg 
cur 
end 

Constructor & Destructor Documentation

OCompressStream ( ostream  dest,
bool  owns_dest,
int  compression_level 
)
OCompressStream ( ostream  dest,
bool  owns_dest 
)

Member Function Documentation

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]
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 ( long int  off,
seekdir  dir 
) [inherited]
seekp ( unsigned long int  pos) [inherited]
unsigned long int tellp ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties