'Declaration Public Overloads Shared Function Compress( _ ByVal buffer() As Byte, _ ByVal method As CompressionMethod, _ ByVal level As CompressionLevel, _ ByVal encryptionPassword As String _ ) As Byte()
'Usage Dim buffer() As Byte Dim method As CompressionMethod Dim level As CompressionLevel Dim encryptionPassword As String Dim value() As Byte value = XceedCompressedStream.Compress(buffer, method, level, encryptionPassword)
public static byte[] Compress( byte[] buffer, CompressionMethod method, CompressionLevel level, string encryptionPassword )
Parameters
- buffer
- The array of bytes to compress.
- method
- A Xceed.Compression.CompressionMethod value representing the compression method to use.
- level
- A string containing the encryption password that will be used to encrypt the files in the stream.
- encryptionPassword
- A string containing the encryption password that will be used to encrypt the files in the stream.