Compressor class
A compressor takes information written to a stream and compresses it using a compression algorithm.
Syntax
var compressor = new Windows.Storage.Compression.Compressor(iOutputStream); var compressor = new Windows.Storage.Compression.Compressor(iOutputStream, compressAlgorithm, uInt32);
Attributes
- ActivatableAttribute(Windows.Storage.Compression.ICompressorFactory, NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- VersionAttribute(NTDDI_WIN8)
Members
The Compressor class has these types of members:
Constructors
The Compressor class has these constructors.
| Constructor | Description |
|---|---|
| Compressor(IOutputStream) | Creates an instance of a compressor. |
| Compressor(IOutputStream, CompressAlgorithm, UInt32) | Creates an instance of a compressor. |
Methods
The Compressor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| Close [C++, JavaScript] | Closes a Compressor object and synchronously discards any information in buffers. |
| 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. |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
