Compresses the specified range using the
specified compressionMode
.
Declaration
public static byte[] Compress(byte[] value, int offset, int length, CompressionLevel compressionMode)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
CompressionLevel |
compressionMode |
|
Returns
Type |
Description |
System.Byte[] |
|
Compresses the specified range, with default level
Declaration
public static byte[] Compress(byte[] value, int offset, int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.Byte[] |
|
Compresses all s in the array, with default level
Declaration
public static byte[] Compress(byte[] value)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
Returns
Type |
Description |
System.Byte[] |
|