Function

compression_stream_destroy

Frees any memory allocated by stream initialization function.

Declaration

compression_status compression_stream_destroy(compression_stream *stream);

Parameters

stream

A pointer to an allocated and initialized compression_stream structure.

Return Value

A value of type compression_status, interpreted as follows:

Discussion

Note that compression_stream_destroy doesn't free the stream object or the buffers allocated by the caller.

See Also

Multiple-Step Compression

Compressing and Decompressing Files with Stream Compression

Perform compression or the appropriate kind of decompression to a file based on its path extension.

compression_stream

A structure representing a compression stream.

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.

compression_status

A set of values used to represent the status of stream compression.

compression_stream_flags

A set of values used to represent stream compression flags.

compression_stream_operation

A set of values used to represent a stream compression operation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software