1 ///////////////////////////////////////////////////////////////////////////////
4 /// \brief Calculates the encoded size of a variable-length integer
6 // Author: Lasse Collin
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
16 extern LZMA_API(uint32_t)
17 lzma_vli_size(lzma_vli vli
)
19 if (vli
> LZMA_VLI_MAX
)
28 assert(i
<= LZMA_VLI_BYTES_MAX
);