#include <ezstream.h>
| class CEZZStream : public CBase |
| Protected Attributes | |
|---|---|
| TInt | iOutputBufferLength |
| TUint8 * | iOutputPointer |
| z_stream | iStream |
| Public Member Enumerations | |
|---|---|
| enum | anonymous { EStreamError, EDataError, EBufError, EVersionError, EUnexpected } |
| Public Member Functions | |
|---|---|
| IMPORT_C TInt32 | Adler32() |
| IMPORT_C TInt | AvailIn() |
| IMPORT_C TInt | AvailOut() |
| IMPORT_C TPtrC8 | OutputDescriptor() |
| IMPORT_C TInt | Progress(TInt) |
| IMPORT_C void | SetInput(const TDesC8 &) |
| IMPORT_C void | SetOutput(TDes8 &) |
| IMPORT_C TInt | TotalIn() |
| IMPORT_C TInt | TotalOut() |
| Protected Member Functions | |
|---|---|
| CEZZStream() | |
Represents a zip stream
| TInt | iOutputBufferLength | [protected] |
| TUint8 * | iOutputPointer | [protected] |
| z_stream | iStream | [protected] |
stream panic values
| Enumerator | Value | Description |
|---|---|---|
| EStreamError | -Z_STREAM_ERROR | |
| EDataError | -Z_DATA_ERROR | |
| EBufError | -Z_BUF_ERROR | |
| EVersionError | -Z_VERSION_ERROR | |
| EUnexpected |
| CEZZStream | ( | ) | [protected] |
| IMPORT_C TInt32 | Adler32 | ( | ) | const |
Return the value of the uncompressed data
| IMPORT_C TInt | AvailIn | ( | ) | const |
Return the number of bytes available at the next input byte
| IMPORT_C TInt | AvailOut | ( | ) | const |
Return the remaining free space at next output byte target
| IMPORT_C TPtrC8 | OutputDescriptor | ( | ) | const |
Return a decriptor pointer to the output buffer
Return the progress of the current operation - that is the percentage of bytes written / read
| Parameters | |
|---|---|
| aTotalLength | the total number of bytes to read / write |
| IMPORT_C void | SetInput | ( | const TDesC8 & | aInputData | ) |
Set the stream's input buffer
| Parameters | |
|---|---|
| aInputData | the input buffer for this stream |
| IMPORT_C void | SetOutput | ( | TDes8 & | aOutputData | ) |
Set the stream's output buffer
| Parameters | |
|---|---|
| aOutputData | the output buffer for this stream |
| IMPORT_C TInt | TotalIn | ( | ) | const |
Return the total number of input bytes read so far
| IMPORT_C TInt | TotalOut | ( | ) | const |
Return the total number of bytes output so far