# FixIO Documentation

Back to summary

`import "io/gzip";`

## ZStream class

Inflate/deflate compression stream.

Inherits from Stream.

Subclasses: GZipStream

### Initialization

`static function create(parent: Stream): ZStream
static function create(parent: Stream, flushable: Boolean): ZStream
`
  Creates a new compression stream (writing compresses and reading decompresses). Optionally you can enable ability to flush data in the middle of the stream. The resulting compressed stream is then aligned to byte boundary on flushes.
`static function create_inverted(parent: Stream): ZStream`
  Creates a new inverted compression stream (writing decompresses and reading compresses).