SophiaFramework UNIVERSE 5.3 |
The SFXZIPDecoder class is used to decompress the DEFLATE compressed data by gzip to be read from the SFBSource or SFBAStream instance or the storage such as SFXFile or SFXTCPSocket.
Limitation | |
---|---|
Data can be read from the SFXZIPDecoder storage, but it cannot be written into this storage. The function to move the read pointer is not supported. |
How to use the SFXZIPDecoder class
Example 18.11. Initiate
SFXFile file; SFXZIPDecoder decoder; SFXAnsiString string; // open file file.Open(SFXPath("/testdata.tar.gz")); // set the specified storage to decoder // * stream, or source can also be set decoder.Open(file); // get input stream for reading data decoder.GetStreamReader(&reader);
Reference: Sample Code
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |