CryptoPressStream:
Delphi / C++Builder Streaming Compression Library
with Strong Encryption
Indicates a compression ratio.
Delphi syntax:
property Ratio: Double;
C++ syntax:
__property double Ratio = {read=GetRatio};
Description
Use Ratio to get a compression ratio.
If stream is not compressed or have zero size or containg none-compressible data (uncompressed size <= compressed size) then the Ratio is zero. In other cases Ratio is calculated by the folowing formula:
Ratio = (Size - CompressedSize) / Size * 100.0
Thus ratio indicates on how much data was compressed in percent from uncompressed size.
|