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§
- compression_
stream - A structure representing a compression stream.
Enums§
- compression_
algorithm - A structure for values that represent compression algorithms.
- compression_
status - A set of values used to represent the status of stream compression.
- compression_
stream_ flags - A set of values used to represent a stream compression operation.
- compression_
stream_ operation - A set of values used to represent a stream compression operation.
Functions§
- compression_
decode_ ⚠buffer - Decompresses the contents of a source buffer into a destination buffer.
- compression_
decode_ ⚠scratch_ buffer_ size - Returns the required decompression scratch buffer size for the selected algorithm.
- compression_
encode_ ⚠buffer - Compresses the contents of a source buffer into a destination buffer.
- compression_
encode_ ⚠scratch_ buffer_ size - Returns the required compression scratch buffer size for the selected algorithm.
- compression_
stream_ ⚠destroy - Frees any memory allocated by stream initialization function.
- compression_
stream_ ⚠init - Initializes a compression stream for either compression or decompression.
- compression_
stream_ ⚠process - Performs compression or decompression using an initialized compression stream structure.