lzmaStreamBufferBound

fnsize_t lzmaStreamBufferBound(size_t uncompressedSize) @safe @nogc nothrow

Returns an upper bound on the compressed size of uncompressedSize bytes when encoded in a single call with lzma_stream_buffer_encode.

Parameters

uncompressedSizeNumber of uncompressed bytes to be encoded.

Returns

The maximum number of bytes the encoded output could occupy.