C# Класс Yea.Compression.CompressionExtensions

Extension methods dealing with compression
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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[]

Описание методов

Compress() публичный статический Метод

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
Результат string

Decompress() публичный статический Метод

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
Результат string