[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 68

type Tdecompressionstream = class(Tcustomzlibstream)

protected

  raw_read: LongInt;

  compressed_read: LongInt;

  skipheader: Boolean;

  procedure reset;

  function GetPosition; override;

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

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.