'Declaration Public Overloads Shared Shadows 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 = XceedCompressedStreamEx.Compress(buffer, offset, count, method, level, encryptionPassword)
public new static byte[] Compress( byte[] buffer, int offset, int count, CompressionMethod method, CompressionLevel level, string encryptionPassword )
Parameters
- buffer
- The array of bytes to compress. A maximum of count bytes are taken from this array and compressed
- 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
- The encryption password to use.