Initializer

init(dst_ptr:dst_size:src_ptr:src_size:state:)

Returns a new compression stream structure.

Declaration

init(dst_ptr: UnsafeMutablePointer<UInt8>, dst_size: Int, src_ptr: UnsafePointer<UInt8>, src_size: Int, state: UnsafeMutableRawPointer?)

Parameters

dst_ptr

A pointer to the first byte of the destination buffer.

dst_size

The size, in bytes, on the destination buffer.

src_ptr

A pointer to the first byte of the source buffer.

src_size

The size, in bytes, on the source buffer.

state

The stream state object of the compression stream. You should not directly access this field.