Function

compression_decode_scratch_buffer_size

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

Declaration

size_t compression_decode_scratch_buffer_size(compression_algorithm algorithm);

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_decode_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.

compression_encode_scratch_buffer_size

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

compression_encode_buffer

Compresses the contents of a source buffer into a destination buffer.

compression_decode_buffer

Decompresses the contents of a source buffer into a destination buffer.