# OCompressStream

from pandac.PandaModules import OCompressStream

Class : OCompressStream
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.

## Inheritance:

OCompressStream: ostream
ostream: ios
ios: ios_base
ios_base:

## Methods of OCompressStream:

OCompressStream (Constructor)
close
open

## Methods of ostream:

flush
put
seekp
tellp

## Methods of ios:

bad
clear
eof
fail
good

## Constants in ios_base:

beg | (seekdir)
cur | (seekdir)
end | (seekdir)

OCompressStream OCompressStream::OCompressStream(void); Description:

close OCompressStream &OCompressStream::close(void); Description: Resets the ZStream to empty, but does not actually close the dest ostream unless owns_dest was true.

open OCompressStream &OCompressStream::open(ostream *dest, bool owns_dest, int compression_level = (6)); Description:

flush void ostream::flush(void); Undocumented function.

put void ostream::put(char c); Undocumented function.

seekp void ostream::seekp(unsigned long int pos); Undocumented function.

tellp unsigned long int ostream::tellp(void); Undocumented function.

bad bool ios::bad(void) const; Undocumented function.

clear void ios::clear(void); Undocumented function.

eof bool ios::eof(void) const; Undocumented function.

fail bool ios::fail(void) const; Undocumented function.

good bool ios::good(void) const; Undocumented function.