Compresses an array of bytes using the extended Xceed compression format with the specified 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.
- 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.
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