C# Class WebMarkupMin.Core.MinificationStatistics

Minification statistics
Mostra file Open project: Taritsyn/WebMarkupMin Class Usage Examples

Public Methods

Method Description
MinificationStatistics ( ) : System

Constructs instance of minification statistics

MinificationStatistics ( Encoding encoding ) : System

Constructs instance of minification statistics

Private Methods

Method Description
CalculateCompressionRatio ( long originalSize, long minifiedSize ) : decimal

Calculatea a compression ratio

CalculateGzipSize ( byte bytes ) : long

Calculatea a size of gzipped code

End ( string minifiedContent ) : void

Finalizes a minification statistics

Init ( string originalContent ) : void

Initializes a minification statistics

Method Details

MinificationStatistics() public method

Constructs instance of minification statistics
public MinificationStatistics ( ) : System
return System

MinificationStatistics() public method

Constructs instance of minification statistics
public MinificationStatistics ( Encoding encoding ) : System
encoding System.Text.Encoding Type of text encoding
return System