IStreamCompressor
Implement Stream Compressor, e.g. br, deflate, gzip
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IStreamCompressor
Properties
Encoding
View Source
Declaration
string Encoding { get; }
Methods
Compress(String, Encoding)
View Source
Declaration
byte[] Compress(string text, Encoding encoding = null)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | text |
System.Text.Encoding | encoding |
Compress(Byte[])
View Source
Declaration
byte[] Compress(byte[] bytes)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |
Compress(Stream, Boolean)
View Source
Declaration
Stream Compress(Stream outputStream, bool leaveOpen = false)
Returns
System.IO.Stream
Parameters
Type | Name |
---|---|
System.IO.Stream | outputStream |
System.Boolean | leaveOpen |
Decompress(Byte[], Encoding)
View Source
Declaration
string Decompress(byte[] zipBuffer, Encoding encoding = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Byte[] | zipBuffer |
System.Text.Encoding | encoding |
Decompress(Stream, Boolean)
View Source
Declaration
Stream Decompress(Stream zipBuffer, bool leaveOpen = false)
Returns
System.IO.Stream
Parameters
Type | Name |
---|---|
System.IO.Stream | zipBuffer |
System.Boolean | leaveOpen |
DecompressBytes(Byte[])
View Source
Declaration
byte[] DecompressBytes(byte[] zipBuffer)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | zipBuffer |