'Declaration Public Overloads Shared Function Compress( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer, _ ByVal method As CompressionMethod, _ ByVal level As CompressionLevel, _ ByVal encryptionPassword As String _ ) As Byte()
'Usage Dim buffer() As Byte Dim offset As Integer Dim count As Integer Dim method As CompressionMethod Dim level As CompressionLevel Dim encryptionPassword As String Dim value() As Byte value = XceedCompressedStream.Compress(buffer, offset, count, method, level, encryptionPassword)
public static byte[] Compress( byte[] buffer, int offset, int count, CompressionMethod method, CompressionLevel level, string encryptionPassword )
Parameters
- buffer
- The array of bytes to compress.
- offset
- The byte offset in buffer at which to begin taking the data to compress.
- count
- The maximum number of bytes to be taken from buffer.
- 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
- A string containing the encryption password that will be used to encrypt the files in the stream.