System.ZLib.TZCompressionStream.CompressionRate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CompressionRate: Single read GetCompressionRate;

C++

__property float CompressionRate = {read=GetCompressionRate};

Properties

Type Visibility Source Unit Parent
property public
System.ZLib.pas
System.ZLib.hpp
System.ZLib TZCompressionStream

Description

Returns the percentage by which the data has been compressed.

The compression rate is a read-only property. Its value is calculated and updated as data is written to the stream. For example, if a total of 100 raw (uncompressed) bytes have been written to the stream, and only 25 compressed bytes have been written out, then reading the CompressionRate property will return a value of 75.