[Overview][Types][Classes][Index] | Reference for unit 'zstream' (#fcl)

# Tdecompressionstream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Reads and decompresses data from a compressed data stream.

## Declaration

Source position: zstream.pp line 69

`type Tdecompressionstream = class(Tcustomzlibstream)`
`public`
`constructor create();` |  | Creates a new instance of the TDecompressionStream stream
`destructor destroy; override;` |  | Destroys the TDecompressionStream instance
`function read(); override;` |  | Read data from the compressed stream
`function seek(); override;` |  | Move stream position to a certain location in the stream.
`function get_compressionrate;` |  | Get the current compression rate
`property OnProgress: Tnotifyevent;` |  | Progress handler
`end;`

## Inheritance

`Tdecompressionstream` |  | Reads and decompresses data from a compressed data stream.
`Tcustomzlibstream` |  | Ancestor for compression and decompression classes
`TOwnerStream`
`TStream`
`TObject`

## Description

TDecompressionStream performs the inverse operation of TCompressionStream. A read operation reads data from an input stream and decompresses (inflates) the data it as it goes along.

The decompression stream reads it's compressed data from a stream with deflated data. This data can be created e.g. with a TCompressionStream compression stream.

## See also

TCompressionStream |  | Write-only stream class which compresses data written to it.

Documentation generated on: Feb 26 2014