Function

compression_encode_scratch_buffer_size(_:)

Returns the required compression scratch buffer size for the selected algorithm.

Declaration

func compression_encode_scratch_buffer_size(_ algorithm: compression_algorithm) -> Int

Parameters

algorithm

Return Value

Size in bytes.

Discussion

This function returns the number of bytes to provide in an optional scratch buffer when calling compression_encode_buffer(_:_:_:_:_:_:).

See Also

Single-Step Compression

Compressing and Decompressing Data with Buffer Compression

Compress a string, write it to the file system, and decompress the same file using buffer compression.

func compression_decode_scratch_buffer_size(compression_algorithm) -> Int

Returns the required decompression scratch buffer size for the selected algorithm.

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