Panda3D
Public Member Functions | List of all members
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 BasicIosChar IosBase

Public Member Functions

 __init__ ()
 
 __init__ (Istream source, bool owns_source)
 
IDecompressStream close ()
 Resets the ZStream to empty, but does not actually close the source istream unless owns_source was true. More...
 
IDecompressStream open (Istream source, bool owns_source)
 
- Public Member Functions inherited from Istream
int get ()
 
 seekg (Streamoff pos)
 
 seekg (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellg ()
 
- Public Member Functions inherited from BasicIosChar
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 

Additional Inherited Members

- Public Types inherited from IosBase
enum  Iostate
 
enum  Openmode
 
enum  Seekdir { beg = 0, cur = 1, end = 2 }
 

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 Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( Istream  source,
bool  owns_source 
)

◆ close()

IDecompressStream close ( )

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

◆ open()

IDecompressStream open ( Istream  source,
bool  owns_source 
)