pub unsafe extern "C" fn compression_encode_scratch_buffer_size(
algorithm: compression_algorithm,
) -> size_t
Expand description
Returns the required compression scratch buffer size for the selected algorithm.
§Arguments
algorithm
- Set to the desired algorithm:compression_algorithm::LZ4
,compression_algorithm::ZLIB
,compression_algorithm::LZMA
, orcompression_algorithm::LZFSE
.
§Returns
Size in bytes.