OCompressStream

from panda3d.core import OCompressStream
class OCompressStream

Bases:

Bases: ostream

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.

Inheritance diagram

Inheritance diagram of OCompressStream

__init__()
__init__(dest: ostream, owns_dest: bool, compression_level: int, header: bool)
close() OCompressStream

Resets the ZStream to empty, but does not actually close the dest ostream unless owns_dest was true.

open(dest: ostream, owns_dest: bool, compression_level: int, header: bool) OCompressStream