Utility APIs

Contents

Utility APIs#

Functions#

uint32_t qpl_get_safe_deflate_compression_buffer_size(uint32_t source_size)#

Calculate the maximum buffer size for compression, compression output should not exceed this size.

Note

This only applies to deflate compressions, Huffman Only mode is not supported.

Note

When performing compression over multiple submissions, the user must call the API for each chunk of data.

Note

This function does not include overhead for gzip/zlib headers and footers.

Parameters:
  • source_size[in] size of the input buffer

Returns:

uint32_t