GZip.Compress(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compress a byte array using the GZip algorithm.
public:
static cli::array <System::Byte> ^ Compress(cli::array <System::Byte> ^ data);
public:
static Platform::Array <byte> ^ Compress(Platform::Array <byte> ^ data);
static std::Array <byte> Compress(std::Array <byte> const & data);
public static byte[] Compress (byte[] data);
static member Compress : byte[] -> byte[]
Public Shared Function Compress (data As Byte()) As Byte()
Parameters
- data
- Byte[]
Array to compress.
Returns
Byte[]
Compressed byte array.