#include <basestrm.h>
Inheritance diagram for StreamCompressionFilter:

Public Member Functions | |
| StreamCompressionFilter (tnstream *outputstream) | |
| virtual void | writedata (const void *buf, int size) |
| writes data to the stream | |
| virtual int | readdata (void *buf, int size, bool excpt=true) |
| Reads data from the stream. | |
| void | close () |
| ~StreamCompressionFilter () | |
Definition at line 600 of file basestrm.h.
| StreamCompressionFilter::StreamCompressionFilter | ( | tnstream * | outputstream | ) |
Definition at line 1845 of file basestrm.cpp.
| StreamCompressionFilter::~StreamCompressionFilter | ( | ) |
| void StreamCompressionFilter::writedata | ( | const void * | buf, | |
| int | size | |||
| ) | [virtual] |
writes data to the stream
| buf | pointer to the buffer | |
| size | the number of bytes which are going to be written |
Implements tnstream.
Definition at line 1850 of file basestrm.cpp.
References libbzip_compression::writedata().
Referenced by testStreamEncoding2().
| int StreamCompressionFilter::readdata | ( | void * | buf, | |
| int | size, | |||
| bool | excpt = true | |||
| ) | [virtual] |
Reads data from the stream.
| buf | the buffer which the data is written to | |
| size | the number of bytes which should be read | |
| excpt | If true the operation will throw an exception if the desired number of bytes cannot be read. |
Implements tnstream.
Definition at line 1855 of file basestrm.cpp.
References tnstream::reading, and tnstream::writing.
| void StreamCompressionFilter::close | ( | ) |
Definition at line 1860 of file basestrm.cpp.
References libbzip_compression::close_compression().
Referenced by testStreamEncoding2(), and ~StreamCompressionFilter().
1.5.1