#include <ezgzip.h>
Link against: ezlib.lib
class CEZGZipToFile : public CBase |
Public Member Functions | |
---|---|
~CEZGZipToFile() | |
IMPORT_C TBool | InflateL() |
IMPORT_C CEZGZipToFile * | NewL(RFs &, const TDesC &, RFile &, TInt) |
IMPORT_C CEZGZipToFile * | NewLC(RFs &, const TDesC &, RFile &, TInt) |
IMPORT_C void | ResetL(RFs &, const TDesC &, RFile &, TInt) |
A CEZGZipToFile object allows de-compression of a compressed file. The name of the compressed file is passed into the constructor along with a target file to contain the uncompressed data. The file is uncompressed by calling the InflateL() function.
~CEZGZipToFile | ( | ) |
IMPORT_C TBool | InflateL | ( | ) |
De-compresses the current zip file in stages. The function needs to called again until the de-compression is finalised, in which case it will return EFalse - for example...
while ( decompressor->InflateL() ) { // No action required }
Leave Codes | |
---|---|
KEZlibErrBadGZipCrc | Invalid CRC check |
... | Any of the system wide error codes |
IMPORT_C CEZGZipToFile * | NewL | ( | RFs & | aRfs, |
const TDesC & | aGzFileName, | |||
RFile & | aOutput, | |||
TInt | aBufferSize = 0x8000 | |||
) | [static] |
Creates a new CEZGZipToFile object
Parameters | |
---|---|
aRfs | open file server session |
aGzFileName | name of the file to be de-compressed |
aOutput | the target file to hold the un-compressed data |
aBufferSize | required size of buffers |
IMPORT_C CEZGZipToFile * | NewLC | ( | RFs & | aRfs, |
const TDesC & | aGzFileName, | |||
RFile & | aOutput, | |||
TInt | aBufferSize = 0x8000 | |||
) | [static] |
Creates a new CEZGZipToFile object and leaves it on the CleanupStack
Parameters | |
---|---|
aRfs | open file server session |
aGzFileName | name of the file to be de-compressed |
aOutput | the target file to hold the un-compressed data |
aBufferSize | required size of buffers |
Quits the current de-compression operation and restarts with the specified arguments
Parameters | |
---|---|
aRfs | open file server session |
aGzFileName | name of the file to be de-compressed |
aOutput | the target file to hold the un-compressed data |
aBufferSize | required size of buffers |
Leave Codes | |
---|---|
... | Any of the system wide error codes |