- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function gzip_gzbuffer(const source: string): string;
Arguments:
-
source |
Source string for compression |
Description:
-
Compresses a string entirely using GZIP compression method (don't mix up with ZLib deflation). This function is used for output_buffering, for example.
Returns:
-
GZIP string. You can save it in .gz file.
Usage:
-
s := 'Some very long string which shows you real compression';
assign(fh, 'test.txt.gz');
rewrite(fh);
write(fh, s);
close(fh);
See also:
-
gzip_compress, gzip_pack.
|