A compressor takes information written to a stream and compresses it using a compression algorithm.
var compressor = new Windows.Storage.Compression.Compressor(iOutputStream); var compressor = new Windows.Storage.Compression.Compressor(iOutputStream, compressAlgorithm, uInt32);
The Compressor class has these types of members:
The Compressor class has these constructors.
|Compressor(IOutputStream)||Creates an instance of a compressor.|
|Compressor(IOutputStream, CompressAlgorithm, UInt32)||Creates an instance of a compressor.|
The Compressor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|DetachStream||Detaches the underlying stream from the Compressor object so that the object can be closed using the Compressor.Close method without also closing the underlying stream.|
|Dispose [C#, VB]||Performs tasks associated with freeing, releasing, or resetting unmanaged resources.|
|FinishAsync||Finishes writing the compression stream.|
|FlushAsync||Flushes the compression stream asynchronously.|
|WriteAsync||Writes information to the compression stream asynchronously.|
Minimum supported client
|Windows 8 [Windows Store apps, desktop apps]|
Minimum supported server
|Windows Server 2012 [Windows Store apps, desktop apps]|
Build date: 11/16/2013