N
AME
Gz_inflate
- gzip unpacker
D
ESCRIPTION
Gz_inflate is a builtin program written in C. It interfaces the packing routines in the libz library.
N
OTA
B
ENE
This program is only available if libz was available and found when Pike was compiled.
S
EE
A
LSO
gz_deflate
N
AME
create
- initialize gzip packer
S
YNTAX
void create()
or
object(Gz_inflate) Gz_inflate()
D
ESCRIPTION
This functionion is called when a new Gz_inflate is created. It can also be called after the object has been used to re-initialize it.
N
AME
inflate
- unpack data
S
YNTAX
string inflate(string
data
);
D
ESCRIPTION
This function preforms gzip style decompression. It can inflate a whole file at once or in blocks.
E
XAMPLES
#include <stdio.h>
// whole file
write(Gz_inflate()->inflate(stdin->read(0x7fffffff));
// streaming (blocks)
function inflate=Gz_inflate()->inflate;
while(string s=stdin->read(8192))
write(inflate(s));
S
EE
A
LSO
gz_deflate->deflate