CEZZStream Class Reference

#include <ezstream.h>

Link against: ezlib.lib

class CEZZStream : public CBase

Inherits from

  • CEZZStream

    Detailed Description

    Represents a zip stream

    Member Attribute Documentation

    iOutputBufferLength

    TInt iOutputBufferLength[protected]

    iOutputPointer

    TUint8 *iOutputPointer[protected]

    iStream

    z_stream iStream[protected]

    Member Enumeration Documentation

    Enum anonymous

    stream panic values

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

    Constructor & Destructor Documentation

    CEZZStream ( )

    CEZZStream()[protected]

    Member Function Documentation

    Adler32 ( )

    IMPORT_C TInt32Adler32()const

    Return the value of the uncompressed data

    Returns: the value of the uncompressed data

    AvailIn ( )

    IMPORT_C TIntAvailIn()const

    Return the number of bytes available at the next input byte

    Returns: 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

    Returns: the remaining free space at next output byte target

    OutputDescriptor ( )

    IMPORT_C TPtrC8OutputDescriptor()const

    Return a decriptor pointer to the output buffer

    Returns: 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

    ParameterDescription
    aTotalLengththe total number of bytes to read / write

    Returns: the progress as a percentage - the number of bytes written / read out of the total target

    SetInput ( const TDesC8 & )

    IMPORT_C voidSetInput(const TDesC8 &aInputData)

    Set the stream's input buffer

    ParameterDescription
    aInputDatathe input buffer for this stream

    SetOutput ( TDes8 & )

    IMPORT_C voidSetOutput(TDes8 &aOutputData)

    Set the stream's output buffer

    ParameterDescription
    aOutputDatathe output buffer for this stream

    TotalIn ( )

    IMPORT_C TIntTotalIn()const

    Return the total number of input bytes read so far

    Returns: the total number of input bytes read so far

    TotalOut ( )

    IMPORT_C TIntTotalOut()const

    Return the total number of bytes output so far

    Returns: the total number of bytes output so far