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