C# Class ServiceStack.StreamExt

Exibir arquivo Open project: ServiceStack/ServiceStack

Public Properties

Property Type Description
DeflateProvider IDeflateProvider
GZipProvider IGZipProvider

Public Methods

Method Description
Compress ( this text, string compressionType ) : byte[]

Compresses the specified text using the default compression method: Deflate

CompressBytes ( this bytes, string compressionType ) : byte[]

Compresses the specified text using the default compression method: Deflate

Decompress ( this gzStream, string compressionType ) : Stream

Decompresses the specified gz buffer using inflate or gzip method

Decompress ( this gzBuffer, string compressionType ) : string

Decompresses the specified gz buffer using the default compression method: Inflate

DecompressBytes ( this gzBuffer, string compressionType ) : byte[]

Decompresses the specified gz buffer using the default compression method: Inflate

Deflate ( this text ) : byte[]
GUnzip ( this gzBuffer ) : string
GZip ( this text ) : byte[]
Inflate ( this gzBuffer ) : string
ToBytes ( this stream ) : byte[]
ToMd5Hash ( this stream ) : string
ToUtf8String ( this stream ) : string
Write ( this stream, string text ) : void

Method Details

Compress() public static method

Compresses the specified text using the default compression method: Deflate
public static Compress ( this text, string compressionType ) : byte[]
text this The text.
compressionType string Type of the compression.
return byte[]

CompressBytes() public static method

Compresses the specified text using the default compression method: Deflate
public static CompressBytes ( this bytes, string compressionType ) : byte[]
bytes this
compressionType string
return byte[]

Decompress() public static method

Decompresses the specified gz buffer using inflate or gzip method
public static Decompress ( this gzStream, string compressionType ) : Stream
gzStream this Compressed stream
compressionType string Type of the compression. Can be "gzip" or "deflate"
return Stream

Decompress() public static method

Decompresses the specified gz buffer using the default compression method: Inflate
public static Decompress ( this gzBuffer, string compressionType ) : string
gzBuffer this The gz buffer.
compressionType string Type of the compression.
return string

DecompressBytes() public static method

Decompresses the specified gz buffer using the default compression method: Inflate
public static DecompressBytes ( this gzBuffer, string compressionType ) : byte[]
gzBuffer this
compressionType string
return byte[]

Deflate() public static method

public static Deflate ( this text ) : byte[]
text this
return byte[]

GUnzip() public static method

public static GUnzip ( this gzBuffer ) : string
gzBuffer this
return string

GZip() public static method

public static GZip ( this text ) : byte[]
text this
return byte[]

Inflate() public static method

public static Inflate ( this gzBuffer ) : string
gzBuffer this
return string

ToBytes() public static method

public static ToBytes ( this stream ) : byte[]
stream this
return byte[]

ToMd5Hash() public static method

public static ToMd5Hash ( this stream ) : string
stream this
return string

ToUtf8String() public static method

public static ToUtf8String ( this stream ) : string
stream this
return string

Write() public static method

public static Write ( this stream, string text ) : void
stream this
text string
return void

Property Details

DeflateProvider public_oe static_oe property

public static IDeflateProvider DeflateProvider
return IDeflateProvider

GZipProvider public_oe static_oe property

public static IGZipProvider GZipProvider
return IGZipProvider