Panda3D
Public Types | Public Member Functions

IDecompressStream Class Reference

An input stream object that uses zlib to decompress (inflate) the input from another source stream on-the-fly. More...

Inheritance diagram for IDecompressStream:
istream ios ios_base

List of all members.

Public Types

enum  openmode
enum  seekdir { beg = 0, cur = 1, end = 2 }

Public Member Functions

 IDecompressStream ()
 IDecompressStream (istream source, bool owns_source)
bool bad ()
 clear ()
IDecompressStream close ()
 Resets the ZStream to empty, but does not actually close the source istream unless owns_source was true.
bool eof ()
bool fail ()
int get ()
bool good ()
IDecompressStream open (istream source, bool owns_source)
 seekg (long int off, seekdir dir)
 seekg (unsigned long int pos)
unsigned long int tellg ()

Detailed Description

An input stream object that uses zlib to decompress (inflate) the input from another source stream on-the-fly.

Attach an IDecompressStream to an existing istream that provides compressed data, and read the corresponding uncompressed data from the IDecompressStream.

Seeking is not supported.


Member Enumeration Documentation

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

Constructor & Destructor Documentation

IDecompressStream ( istream  source,
bool  owns_source 
)

Member Function Documentation

bool bad ( ) [inherited]
clear ( ) [inherited]
IDecompressStream close ( )

Resets the ZStream to empty, but does not actually close the source istream unless owns_source was true.

bool eof ( ) [inherited]
bool fail ( ) [inherited]
int get ( ) [inherited]
bool good ( ) [inherited]
IDecompressStream open ( istream  source,
bool  owns_source 
)
seekg ( long int  off,
seekdir  dir 
) [inherited]
seekg ( unsigned long int  pos) [inherited]
unsigned long int tellg ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties