RZipFileMemberReaderStream Class Reference
class RZipFileMemberReaderStream : public CBase |
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 Note: This class is actually a C class as it derives from CBase
Inherits from
- RZipFileMemberReaderStream
Private Member Functions |
---|
| RZipFileMemberReaderStream(CZipFile &, TUint32, TUint32, TUint32, TUint32) |
void | Attach(MStreamBuf *) |
void | ConstructL() |
void | Detach() |
TInt
| GetBytes(TByte *, TUint32, TUint32 *) |
TInt
| GetCompressedBytes(void) |
TInt
| GetStoredBytes(TByte *, TUint32, TUint32 *) |
RZipFileMemberReaderStream * | NewL(CZipFile &, TUint32, TUint32, TUint32, TUint32) |
void | Pop() |
void | PushL() |
TInt
| Read(void) |
TInt
| Read(TByte *, TUint32, TUint32 *) |
TInt16
| ReadInt16L() |
TInt32
| ReadInt32L() |
TInt8
| ReadInt8L() |
void | ReadL(TDes8 &) |
void | ReadL(TDes16 &) |
void | ReadL(TDes8 &, TChar) |
void | ReadL(TDes16 &, TChar) |
void | ReadL(TUint8 *, TInt) |
void | ReadL(TUint16 *, TInt) |
void | ReadL(RWriteStream &) |
void | ReadL(RWriteStream &, TInt) |
void | ReadL(TInt) |
TReal32
| ReadReal32L() |
TReal64
| ReadReal64L() |
TUint16
| ReadUint16L() |
TUint32
| ReadUint32L() |
TUint8
| ReadUint8L() |
MStreamBuf * | Source() |
Constructor & Destructor Documentation
RZipFileMemberReaderStream(CZipFile &, TUint32, TUint32, TUint32, TUint32)
~RZipFileMemberReaderStream()
IMPORT_C | ~RZipFileMemberReaderStream | ( | ) | |
Destructor. All dynamically allocated data structures for this stream are freed.
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
Creates input stream to be used for reading the contents of the compressed file.
GetBytes(TByte *, TUint32, TUint32 *)
GetCompressedBytes(void)
TInt
| GetCompressedBytes | ( | void | | ) | [private] |
GetStoredBytes(TByte *, TUint32, TUint32 *)
NewL(CZipFile &, TUint32, TUint32, TUint32, TUint32)
Read(TDes16 &, TInt)
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 |
Read(TDes8 &, TInt)
Parameters
TDes8 & aDes | The target descriptor for the data read from the stream buffer |
TInt aLength | The maximum number of bytes to be read |
Read(void)
TInt
| Read | ( | void | | ) | [private, virtual] |
Read(TByte *, TUint32, TUint32 *)
ReadInt8L()
TInt8
| ReadInt8L | ( | ) | [private] |
ReadL(TDes16 &, TInt)
Overload version of the RZipFileMemberReaderStream readL method. On return, contains the data read from the stream buffer.
-
leave
- KErrNone If all bytes read successfully.
-
leave
- KErrCorrupt If reading fails.
-
leave
- KErrEof If end of file is reached.
-
leave
- ... Any one of the system-wide error codes for other errors.
Parameters
TDes16 & aDes | The target descriptor for the data read from the stream buffer |
TInt aLength | The maximum number of bytes to be read |
ReadL(TDes8 &)
void | ReadL | ( | TDes8 & | | ) | [private] |
ReadL(RWriteStream &, TInt)
Member Enumerations Documentation
Enum anonymous
Enumerators
kCompressedBytesSize = 1024 | |
Member Data Documentation
TUint32
iBytesLength
The number of bytes already read in uncompressed bytes
TByte
iCompressedBytes
TByte
| iCompressedBytes | [private] |
To store compressed bytes read
TUint32
iCompressedBytesOffset
TUint32
| iCompressedBytesOffset | [private] |
Not used in implementation
TUint32
iCompressedSize
The size of compressed file
TUint32
iCompressionMethod
TUint32
| iCompressionMethod | [private] |
The method for compressing file
TUint32
iUncompressedSize
The size of uncompressed file
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.