'Declaration Public Overloads Shared Shadows 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 = XceedCompressedStreamEx.Compress(buffer, method, level, encryptionPassword)
public new 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 Xceed.Compression.CompressionLevel value representing the compression level to use.
- encryptionPassword
- The encryption password to use.