| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
Gz
Gz.inflate

# Method Gz.inflate()->inflate()

Method inflate

  `string inflate(string data)`

Description

  This function performs gzip style decompression. It can inflate a whole file at once or in blocks.

Example

      // 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));

See also

  Gz.deflate->deflate()