Structure

compression_status

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

Declaration

struct compression_status

Topics

Status Constants

var COMPRESSION_STATUS_OK: compression_status

Indicates the stream has consumed all data in the source buffer, or used all space in the destination buffer.

var COMPRESSION_STATUS_END: compression_status

Indicates the stream has read all input from the source, and written all output to the destination.

var COMPRESSION_STATUS_ERROR: compression_status

Indicates an error with stream compression.

Initializers

init(Int32)

Creates a new constant from the given raw value.

init(rawValue: Int32)

Creates a new constant from the given raw value.

Instance Properties

var rawValue: Int32

The raw value of the constant.

Relationships

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.

struct compression_stream

A structure representing a compression stream.

func compression_stream_process(UnsafeMutablePointer<compression_stream>, Int32) -> compression_status

Performs compression or decompression using an initialized compression stream structure.

struct compression_stream_flags

A set of values used to represent stream compression flags.

struct 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