Expand description

Compression

Leverage common compression algorithms for lossless data compression.

Overview

The Compression framework enables your app to provide lossless compression when saving or sharing files and data. Compression is a process in which you compress (encode) and decompress (decode) data. For example, a text editor may save its files in a compressed format, and automatically decompress the saved file when opened by the user.

Structs

A structure representing a compression stream.

Enums

A structure for values that represent compression algorithms.
A set of values used to represent the status of stream compression.
A set of values used to represent a stream compression operation.
A set of values used to represent a stream compression operation.

Functions

Decompresses the contents of a source buffer into a destination buffer.
Returns the required decompression scratch buffer size for the selected algorithm.
Compresses the contents of a source buffer into a destination buffer.
Returns the required compression scratch buffer size for the selected algorithm.
Frees any memory allocated by stream initialization function.
Initializes a compression stream for either compression or decompression.
Performs compression or decompression using an initialized compression stream structure.