<brieflz.h> - blz_workmem_size
size_t blz_workmem_size( size_t input_size );

Computes the required size of the workmem[] buffer used by blz_pack for compressing input_size bytes of data.

The default is 1 mb (1024*1024) for the 32-bit version and 32 kb (32*1024) for the 16-bit version.

Parameters:
input_size - the length of the uncompressed data in bytes.
Returns:
the required size of the work buffer.