[This documentation is preliminary and is subject to change.]
Provides a unified interface to the compression features included in Windows that frees developers from responsibility for managing block sizes, compression parameters, and other details that the native compression API requires.
You can download a JavaScript sample that reads data from a file and writes compressed data to a new file and reads compressed data and writes decompressed data to a new file. To download this sample, see Compression sample in the Metro style apps gallery.
A subset of Win32 and COM for Metro style apps can be used by Metro style apps to support scenarios not already covered by the Windows Runtime, HTML/CSS, or other supported languages or standards. For this purpose, the native Compression API can also be used by developers of Metro style apps.
Members
The Windows.Storage.Compression namespace has these types of members:
Classes
The Windows.Storage.Compression namespace has these classes.
| Class | Description |
|---|---|
| Compressor | A compressor takes information written to a stream and compresses it using a compression algorithm. |
| Decompressor | A decompressor takes a stream compressed by a compressor and decompresses it. |
Enumerations
The Windows.Storage.Compression namespace has these enumerations.
| Enumeration | Description |
|---|---|
| CompressAlgorithm | Identifies a compression algorithm to use when creating an instance of a compressor. |
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
Build date: 5/22/2012
