Compresses an array of bytes using the GZip compression format specifying the amount of bytes to compress as well as the compression level.
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 .
- 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