Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:

List of all members.

## Public Member Functions
| OCompressStream ()
| OCompressStream (ostream dest, bool owns_dest, int compression_level)
| OCompressStream (ostream dest, bool owns_dest)
OCompressStream | close ()
| Resets the ZStream to empty, but does not actually close the dest ostream unless owns_dest was true.
OCompressStream | open (ostream dest, bool owns_dest)
OCompressStream | open (ostream dest, bool owns_dest, int compression_level)

## 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.

## Constructor & Destructor Documentation

OCompressStream | ( |  | ) |

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

OCompressStream | ( | ostream | dest,
|  | bool | owns_dest
| ) |  |

## Member Function Documentation

OCompressStream close | ( |  | ) |

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

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

OCompressStream open | ( | ostream | dest,
|  | bool | owns_dest
| ) |  |

All Classes Namespaces Functions Variables Enumerations Enumerator Properties