C# Class Yea.Compression.CompressionExtensions

Extension methods dealing with compression
ファイルを表示 Open project: OxPatient/Rule-Engine

Public Methods

Method Description
Compress ( this data, Encoding encodingUsing = null, CompressionType compressionType = CompressionType.Default ) : string

Compresses a string of data

Decompress ( this data, Encoding encodingUsing = null, CompressionType compressionType = CompressionType.Default ) : string

Decompresses a string of data

Private Methods

Method Description
Compress ( this data, CompressionType compressionType = CompressionType.Default ) : byte[]
Decompress ( this data, CompressionType compressionType = CompressionType.Default ) : byte[]
GetStream ( MemoryStream stream, CompressionMode mode, CompressionType compressionType ) : Stream
Transfer ( uint uints ) : byte[]
Transfer ( MemoryStream stream ) : uint[]

Method Details

Compress() public static method

Compresses a string of data
public static Compress ( this data, Encoding encodingUsing = null, CompressionType compressionType = CompressionType.Default ) : string
data this Data to Compress
encodingUsing System.Text.Encoding Encoding that the data uses (defaults to UTF8)
compressionType CompressionType The compression type used
return string

Decompress() public static method

Decompresses a string of data
public static Decompress ( this data, Encoding encodingUsing = null, CompressionType compressionType = CompressionType.Default ) : string
data this Data to decompress
encodingUsing System.Text.Encoding Encoding that the result should use (defaults to UTF8)
compressionType CompressionType The compression type used
return string