C# 클래스 Yea.Compression.CompressionExtensions

Extension methods dealing with compression
파일 보기 프로젝트 열기: OxPatient/Rule-Engine

공개 메소드들

메소드 설명
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