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) -> IntParameters
- algorithm:
Set to the desired algorithm: Compression_lz4, Compression_zlib, Compression_lzma, or Compression_lzfse.
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(_:_:_:_:_:_:).