- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function gzip_decompress(const source: string; dest_len: longword): string;
Arguments:
-
source |
Deflated string for decompression |
source |
Original string length or 0 if original length is unknown (some bigger value is assumed in this case). |
Description:
-
Decompresses deflated string back to the original one using ZLib inflate method.
Returns:
-
Inflated string.
Usage:
-
s := 'Some very long string which shows you real compression';
len := length(s);
s := gzip_compress(s);
writeln(s);
s := gzip_decompress(s, len);
writeln(s);
See also:
-
gzip_compress.
|