lz4MaxCompressedSize

private fnsize_t lz4MaxCompressedSize(size_t srcSize)

Compute an upper bound on the compressed size of a single LZ4 block.

This follows the standard LZ4 bound formula: srcSize + srcSize / 255 + 16.

Parameters

srcSizeLength of the input block in bytes.

Returns

Maximum number of bytes that may be produced by

lz4CompressBlock for an input of srcSize bytes.