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

Tcompressionstream

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

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

Declaration

Source position: zstream.pp line 55

type Tcompressionstream = class(Tcustomzlibstream)

protected

  raw_written: LongInt;

  compressed_written: LongInt;

public

  constructor create();

  

Create a new instance of the compression stream.

  destructor destroy; override;

  

Flushe data to the output stream and destroys the compression stream.

  function write(); override;

  

Write data to the stream

  procedure flush;

  

Flush remaining data to the target stream

  function get_compressionrate;

  

Get the current compression rate

end;

Inheritance

Tcompressionstream

  

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

|

Tcustomzlibstream

  

Ancestor for compression and decompression classes

|

TOwnerStream

|

TStream

|

TObject

Description

TCompressionStream

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