Sdílet prostřednictvím


GZip.Compress(Byte[]) Method

Definition

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.

Applies to