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

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

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

Returns:

uint32_t