#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
IMPORT_C TInt32 | Adler32 | ( | ) | const |
Return the value of the uncompressed data
Returns: the value of the uncompressed data
IMPORT_C TInt | AvailIn | ( | ) | const |
Return the number of bytes available at the next input byte
Returns: 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
Returns: the remaining free space at next output byte target
IMPORT_C TPtrC8 | OutputDescriptor | ( | ) | const |
Return a decriptor pointer to the output buffer
Returns: a decriptor pointer to the output buffer
Return the progress of the current operation - that is the percentage of bytes written / read
Parameter | Description |
---|---|
aTotalLength | the total number of bytes to read / write |
Returns: the progress as a percentage - the number of bytes written / read out of the total target
IMPORT_C void | SetInput | ( | const TDesC8 & | aInputData | ) |
Set the stream's input buffer
Parameter | Description |
---|---|
aInputData | the input buffer for this stream |
IMPORT_C void | SetOutput | ( | TDes8 & | aOutputData | ) |
Set the stream's output buffer
Parameter | Description |
---|---|
aOutputData | the output buffer for this stream |
IMPORT_C TInt | TotalIn | ( | ) | const |
Return the total number of input bytes read so far
Returns: the total number of input bytes read so far
IMPORT_C TInt | TotalOut | ( | ) | const |
Return the total number of bytes output so far
Returns: the total number of bytes output so far