Contents

compression_stream_init(_:_:_:)

Initializes a compression stream for either compression or decompression.

Declaration

func compression_stream_init(_ stream: UnsafeMutablePointer<compression_stream>, _ operation: compression_stream_operation, _ algorithm: compression_algorithm) -> compression_status

Parameters

Return Value

A value of type compression_status, interpreted as follows:

Discussion

After success of this function, set the dst_ptr, dst_size, src_ptr, and src_size fields of the stream structure to their respective values. You can then pass stream structure to the compression_stream_process(_:_:) function.

See Also

Multiple-step compression