CEZZStream Class Reference

class CEZZStream : public CBase

Represents a zip stream

Inherits from

Public Member Functions
IMPORT_C TInt32Adler32()
IMPORT_C TIntAvailIn()
IMPORT_C TIntAvailOut()
IMPORT_C TPtrC8OutputDescriptor()
IMPORT_C TIntProgress(TInt)
IMPORT_C voidSetInput(const TDesC8 &)
IMPORT_C voidSetOutput(TDes8 &)
IMPORT_C TIntTotalIn()
IMPORT_C TIntTotalOut()
Protected Member Functions
CEZZStream()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumanonymous { EStreamError = -Z_STREAM_ERROR, EDataError = -Z_DATA_ERROR, EBufError = -Z_BUF_ERROR, EVersionError = -Z_VERSION_ERROR, EUnexpected }
Protected Attributes
TInt iOutputBufferLength
TUint8 *iOutputPointer
z_stream iStream

Constructor & Destructor Documentation

CEZZStream()

CEZZStream()[protected]

Member Functions Documentation

Adler32()

IMPORT_C TInt32Adler32()const

Return the value of the uncompressed data

AvailIn()

IMPORT_C TIntAvailIn()const

Return the number of bytes available at the next input byte

AvailOut()

IMPORT_C TIntAvailOut()const

Return the remaining free space at next output byte target

OutputDescriptor()

IMPORT_C TPtrC8OutputDescriptor()const

Return a decriptor pointer to the output buffer

Progress(TInt)

IMPORT_C TIntProgress(TIntaTotalLength)const

Return the progress of the current operation - that is the percentage of bytes written / read

Parameters

TInt aTotalLengththe total number of bytes to read / write

SetInput(const TDesC8 &)

IMPORT_C voidSetInput(const TDesC8 &aInputData)

Set the stream's input buffer

Parameters

const TDesC8 & aInputDatathe input buffer for this stream

SetOutput(TDes8 &)

IMPORT_C voidSetOutput(TDes8 &aOutputData)

Set the stream's output buffer

Parameters

TDes8 & aOutputDatathe output buffer for this stream

TotalIn()

IMPORT_C TIntTotalIn()const

Return the total number of input bytes read so far

TotalOut()

IMPORT_C TIntTotalOut()const

Return the total number of bytes output so far

Member Enumerations Documentation

Enum anonymous

stream panic values

Enumerators

EStreamError = -Z_STREAM_ERROR
EDataError = -Z_DATA_ERROR
EBufError = -Z_BUF_ERROR
EVersionError = -Z_VERSION_ERROR
EUnexpected

Member Data Documentation

TInt iOutputBufferLength

TInt iOutputBufferLength[protected]

TUint8 * iOutputPointer

TUint8 *iOutputPointer[protected]

z_stream iStream

z_stream iStream[protected]