Compressor.Compress Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9083)
Compress(String)
Compress a string data to a byte array.
Declaration
public static byte[] Compress(string data)
Parameters
Type | Name | Description |
---|---|---|
String | data | String data to compress. |
Returns
Type | Description |
---|---|
Byte[] | Compressed data. |
Compress(String, Encoding)
Compress a string data to a byte array.
Declaration
public static byte[] Compress(string data, Encoding dataCharSet)
Parameters
Type | Name | Description |
---|---|---|
String | data | String data to compress. |
Encoding | dataCharSet | Encoding of the input string. |
Returns
Type | Description |
---|---|
Byte[] | Compressed data in byte array. |
Compress(Byte[])
Compress a byte array data to a byte array.
Declaration
public static byte[] Compress(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | Data to compress. |
Returns
Type | Description |
---|---|
Byte[] | Compressed data. |