Compresses an array of bytes using the extended Xceed compression format specifying the amount of bytes to compress as well as compression method and level. Use this method to compress data compatible with the ActiveX Xceed Zip Compression Library (XceedCompression object).
Parameters
- buffer
- The array of bytes to compress. A maximum of bytes are taken from this array and compressed
- offset
- The byte offset in at which to begin taking the data to compress.
- count
- The maximum number of bytes to be taken from .
- method
- A Xceed.Compression.CompressionMethod value representing the compression method to use.
- level
- A Xceed.Compression.CompressionLevel value representing the compression level to use.
Return Value
An array of bytes containing the compressed data. Can be empty.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2