Decompresses the contents of a source buffer into a destination buffer.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Pointer to the buffer that receives the decompressed data.
Size of the destination buffer in bytes.
Pointer to a buffer containing all of the compressed source data.
Size of the data in the source buffer in bytes.
nil, this parameter is a pointer to a buffer that the function uses for scratch purposes. The size of this buffer must be at least the size returned by a previous call to
_decode _scratch _buffer _size(_:)
nil, the function creates and manages its own scratch space, but with a possible performance hit.
The number of bytes written to the destination buffer after decompressing the input. If there is not enough space in the destination buffer to hold the entire decompressed output, the function writes the first
dst bytes to the buffer and returns
dst. Note that this behavior differs from that of
The function writes the decompressed data to