C# Class ServiceStack.StreamExt

Afficher le fichier Open project: ServiceStack/ServiceStack

Méthodes publiques

Свойство Type Description
DeflateProvider IDeflateProvider
GZipProvider IGZipProvider

Méthodes publiques

Méthode 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 méthode

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.
Résultat byte[]

CompressBytes() public static méthode

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

Decompress() public static méthode

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"
Résultat Stream

Decompress() public static méthode

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.
Résultat string

DecompressBytes() public static méthode

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

Deflate() public static méthode

public static Deflate ( this text ) : byte[]
text this
Résultat byte[]

GUnzip() public static méthode

public static GUnzip ( this gzBuffer ) : string
gzBuffer this
Résultat string

GZip() public static méthode

public static GZip ( this text ) : byte[]
text this
Résultat byte[]

Inflate() public static méthode

public static Inflate ( this gzBuffer ) : string
gzBuffer this
Résultat string

ToBytes() public static méthode

public static ToBytes ( this stream ) : byte[]
stream this
Résultat byte[]

ToMd5Hash() public static méthode

public static ToMd5Hash ( this stream ) : string
stream this
Résultat string

ToUtf8String() public static méthode

public static ToUtf8String ( this stream ) : string
stream this
Résultat string

Write() public static méthode

public static Write ( this stream, string text ) : void
stream this
text string
Résultat void

Property Details

DeflateProvider public_oe static_oe property

public static IDeflateProvider DeflateProvider
Résultat IDeflateProvider

GZipProvider public_oe static_oe property

public static IGZipProvider GZipProvider
Résultat IGZipProvider