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

Method inflate

  ``string(8bit)` inflate(`string(8bit)`|`String.Buffer`|`System.Memory`|`Stdio.Buffer` `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(), `Gz.decompress`