Functions

gnash::zlib_adapter Namespace Reference

Code to wrap zlib compression/decompression around an IOChannel stream. More...

Functions

std::auto_ptr< IOChannelmake_inflater (std::auto_ptr< IOChannel > in)
 Returns a read-only IOChannel stream that inflates the remaining content of the given input stream, as you read data from the new stream.
IOChannelmake_deflater (IOChannel *out)
 Returns a write-only IOChannel stream that deflates the remaining content of the given input stream.

Detailed Description

Code to wrap zlib compression/decompression around an IOChannel stream.


Function Documentation

DSOEXPORT IOChannel * gnash::zlib_adapter::make_deflater ( IOChannel *  out  ) 

Returns a write-only IOChannel stream that deflates the remaining content of the given input stream.

TODO: take and return by auto_ptr

DSOEXPORT std::auto_ptr< IOChannel > gnash::zlib_adapter::make_inflater ( std::auto_ptr< IOChannel >   ) 

Returns a read-only IOChannel stream that inflates the remaining content of the given input stream, as you read data from the new stream.

Referenced by gnash::SWFMovieDefinition::readHeader().