compression_stream_destroy(_:)
Frees any memory allocated by stream initialization function.
Declaration
func compression_stream_destroy(_ stream: UnsafeMutablePointer<compression_stream>) -> compression_statusParameters
- stream:
A pointer to an allocated and initialized Compression_stream structure.
Return Value
A value of type compression_status, interpreted as follows:
COMPRESSION_STATUS_OK means that the function successfully destroyed the stream.
COMPRESSION_STATUS_ERROR means an error occurred.
Discussion
Note that compression_stream_destroy(_:) doesn’t free the stream object or the buffers allocated by the caller.