Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: zipfilememberinputstream.h
Link against: ezip.lib

Class RZipFileMemberReaderStream

class RZipFileMemberReaderStream : public CBase;

Description

A RZipFileMemberReaderStream represents a input stream for compressed files in the archive. This is a friend class to CZipFile. In order to create a input stream for a file in the archive, CZipFile will call its member function GetInputStreamL() by passing a pointer to RZipFileMemberReaderStream and the function will return the input stream for the file

Derivation

Members

Defined in RZipFileMemberReaderStream:
Read(), Read(), Read(), Read(), ReadL(), ~RZipFileMemberReaderStream()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~RZipFileMemberReaderStream()

IMPORT_C ~RZipFileMemberReaderStream();

Description

Destructor. All dynamically allocated data structures for this stream are freed.

[Top]


Member functions


Read()

IMPORT_C TInt Read(TDes16 &aDes, TInt aLength);

Description

Reads data from the stream buffer into the specified descriptor. On return, contains the data read from the stream buffer

Parameters

TDes16 &aDes

The target descriptor for the data read from the stream buffer

TInt aLength

The maximum number of bytes to be read

Return value

TInt

KErrNone If all bytes read successfully. KErrCorrupt If reading fails. KErrEof If end of file is reached. ... Any one of the system-wide error codes for other errors.


Read()

virtual TInt Read(TDes8 &aDes, TInt aLength);

Description

Overload version of the RZipFileMemberReaderStream read method. On return, contains the data read from the stream buffer.

Parameters

TDes8 &aDes

The target descriptor for the data read from the stream buffer

TInt aLength

The maximum number of bytes to be read

Return value

TInt

KErrNone If all bytes read successfully. KErrCorrupt If reading fails. KErrEof If end of file is reached. ... Any one of the system-wide error codes for other errors.


ReadL()

virtual void ReadL(TDes16 &aDes, TInt aLength);

Description

Overload version of the RZipFileMemberReaderStream readL method. On return, contains the data read from the stream buffer.

Parameters

TDes16 &aDes

The target descriptor for the data read from the stream buffer

TInt aLength

The maximum number of bytes to be read

Leave codes

KErrNone

If all bytes read successfully.

KErrCorrupt

If reading fails.

KErrEof

If end of file is reached.

...

Any one of the system-wide error codes for other errors.


Read()

private: virtual TInt Read(void);

Description

Return value

TInt


Read()

private: virtual TInt Read(TByte *, TUint32, TUint32 *);

Description

Parameters

TByte *

TUint32

TUint32 *

Return value

TInt